aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/git.py
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <proyvind@moondrake.org>2016-06-29 18:37:40 +0200
committerPer Øyvind Karlsen <proyvind@moondrake.org>2016-06-29 18:37:40 +0200
commitea3b0a3f51c036238b182ba09d82f0ed94b8bcc3 (patch)
tree9804bbf620bb669d8ab78a80678663363484d428 /MgaRepo/git.py
parentb0ec418695c69bd6c69b4cf5ebd185335f4d0781 (diff)
downloadmgarepo-ea3b0a3f51c036238b182ba09d82f0ed94b8bcc3.tar
mgarepo-ea3b0a3f51c036238b182ba09d82f0ed94b8bcc3.tar.gz
mgarepo-ea3b0a3f51c036238b182ba09d82f0ed94b8bcc3.tar.bz2
mgarepo-ea3b0a3f51c036238b182ba09d82f0ed94b8bcc3.tar.xz
mgarepo-ea3b0a3f51c036238b182ba09d82f0ed94b8bcc3.zip
in stead of creating new lists for fetchcmd with revision argument
appended for each revision, just replace last item in list with revision argument replaced with new revision
Diffstat (limited to 'MgaRepo/git.py')
-rw-r--r--MgaRepo/git.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/MgaRepo/git.py b/MgaRepo/git.py
index 3462eb1..01f21f0 100644
--- a/MgaRepo/git.py
+++ b/MgaRepo/git.py
@@ -147,9 +147,11 @@ class GIT(VCS):
usermap = UserTagParser(url=gitconfig.get("svn-remote.authorlog.url"),defaultmail=gitconfig.get("svn-remote.authorlog.defaultmail"))
usermapfile = usermap.get_user_map_file()
fetchcmd.extend(("--authors-file", usermapfile))
+ fetchcmd.append("")
while revisions:
- self._execVcs(*fetchcmd + ["-r%d"%revisions.pop(0)], **kwargs)
+ fetchcmd[-1] = "-r%d"%revisions.pop(0)
+ self._execVcs(*fetchcmd, **kwargs)
if gitconfig:
usermap.cleanup()