[Pkg-mozext-commits] [adblock-plus] 13/24: Issue 1398 - Improve compatibility with older git(1) versions

David Prévot taffit at moszumanska.debian.org
Mon Oct 20 02:15:23 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 8ba179ec810adb0eaeb7c8365150f670f1a7800c
Author: AAlvz <alfonso at alvz.mx>
Date:   Mon Sep 22 17:10:47 2014 +0200

    Issue 1398 - Improve compatibility with older git(1) versions
    
    --HG--
    extra : amend_source : 6b60ec2f382dacfb709782c5f6d0cd78185b4afd
---
 ensure_dependencies.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ensure_dependencies.py b/ensure_dependencies.py
index 7df655e..a2d078a 100755
--- a/ensure_dependencies.py
+++ b/ensure_dependencies.py
@@ -67,14 +67,14 @@ class Git():
     subprocess.check_call(["git", "clone", "--quiet", source, target])
 
   def get_revision_id(self, repo, rev="HEAD"):
-    command = ["git", "-C", repo, "rev-parse", "--revs-only", rev]
-    return subprocess.check_output(command).strip()
+    command = ["git", "rev-parse", "--revs-only", rev]
+    return subprocess.check_output(command, cwd=repo).strip()
 
   def pull(self, repo):
-    subprocess.check_call(["git", "-C", repo, "fetch", "--quiet", "--all", "--tags"])
+    subprocess.check_call(["git", "fetch", "--quiet", "--all", "--tags"], cwd=repo)
 
   def update(self, repo, rev):
-    subprocess.check_call(["git", "-C", repo, "checkout", "--quiet", rev])
+    subprocess.check_call(["git", "checkout", "--quiet", rev], cwd=repo)
 
 repo_types = {
   "hg": Mercurial(),

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list