changeset 45:048e391423a1

note about git config
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 05 Apr 2013 13:37:24 -0700
parents 693f209fdbaa
children cee8bf9cc5a2
files buttercup/source.py
diffstat 1 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/buttercup/source.py
+++ b/buttercup/source.py
@@ -66,18 +66,30 @@ class GitSource(Source):
         """updates a checkout or does one if it does not exist"""
         if os.path.exists(self.directory()):
             assert os.path.exists(os.path.join(self.directory(), '.git'))
             call(['git', 'pull'], cwd=self.directory())
         else:
             if not os.path.exists(self.srcdir):
                 os.makedirs(self.srcdir)
             call(['git', 'clone', self.uri], cwd=self.srcdir)
-            # TODO: add a more intelligent .git/config
-
+            # TODO: add a more intelligent .git/config, e.g.
+# [core]
+#         repositoryformatversion = 0
+#         filemode = true
+#         bare = false
+#         logallrefupdates = true
+# [remote "origin"]
+#         fetch = +refs/heads/*:refs/remotes/origin/*
+#         url = git://github.com/mozilla/toolbox.git
+#         pushurl = git@github.com:mozilla/toolbox.git
+# [branch "master"]
+#         remote = origin
+#         merge = refs/heads/master
+# see: http://git.661346.n2.nabble.com/Separate-default-push-pull-td4555821.html
 
 def sources(source_dict, **kwargs):
     """
     return source objects from a dict:
     {'hg': ['http://k0s.org/hg/pyloader'],
      'git': ['git://github.com/mozilla/toolbox.git']}
     """
     retval = []