gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r1740428 - /gump/live/python/gump/core/update/git.py
Date Thu, 21 Apr 2016 23:33:40 GMT
Author: kkolinko
Date: Thu Apr 21 23:33:40 2016
New Revision: 1740428

URL: http://svn.apache.org/viewvc?rev=1740428&view=rev
Log:
Disable reflog support in Git.

Modified:
    gump/live/python/gump/core/update/git.py

Modified: gump/live/python/gump/core/update/git.py
URL: http://svn.apache.org/viewvc/gump/live/python/gump/core/update/git.py?rev=1740428&r1=1740427&r2=1740428&view=diff
==============================================================================
--- gump/live/python/gump/core/update/git.py (original)
+++ gump/live/python/gump/core/update/git.py Thu Apr 21 23:33:40 2016
@@ -47,8 +47,15 @@ class GitUpdater(ScmUpdater):
             Build the appropriate GIT command for clone
         """
         log_repository_and_url(module, 'git')
+
+        # Setting core.logAllRefUpdates=false disables reflog support,
+        # so that subsequent updates do not waste time updating the
+        # reflog file, .git/logs/refs/remotes/origin/master.
+
         cmd = Cmd('git', 'update_' + module.getName(), 
                   module.getWorkspace().getSourceControlStagingDirectory())
+        cmd.addParameter('-c')
+        cmd.addParameter('core.logallrefupdates=false')
         cmd.addParameter('clone')
         maybe_make_quiet(module, cmd)
         cmd.addParameter('--recursive')



Mime
View raw message