]> git.ozlabs.org Git - patchwork/commitdiff
tools: De-hyphenate Git commands in update-patchwork-status.py
authorMartin Krafft <madduck@madduck.net>
Thu, 4 Feb 2010 16:18:54 +0000 (16:18 +0000)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 10 Aug 2010 03:49:35 +0000 (11:49 +0800)
Even though update-patchwork-status.py doesn't really do anything yet,
it uses the ancient way to call Git commands, so this patch fixes that.

Signed-off-by: martin f. krafft <madduck@madduck.net>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/bin/update-patchwork-status.py

index c774d63d7091dee1a82caf1aed7e6dc73a42af49..2da5d23e839193294a3072b531b180bcfe269657 100755 (executable)
@@ -25,7 +25,7 @@ import subprocess
 from optparse import OptionParser
 
 def commits(options, revlist):
-    cmd = ['git-rev-list', revlist]
+    cmd = ['git', 'rev-list', revlist]
     proc = subprocess.Popen(cmd, stdout = subprocess.PIPE, cwd = options.repodir)
 
     revs = []
@@ -36,7 +36,7 @@ def commits(options, revlist):
     return revs
 
 def commit(options, rev):
-    cmd = ['git-diff', '%(rev)s^..%(rev)s' % {'rev': rev}]
+    cmd = ['git', 'diff', '%(rev)s^..%(rev)s' % {'rev': rev}]
     proc = subprocess.Popen(cmd, stdout = subprocess.PIPE, cwd = options.repodir)
 
     buf = proc.communicate()[0]