diff mbox

De-hyphenate Git commands in update-patchwork-status.py

Message ID 1265336334-26872-1-git-send-email-madduck@madduck.net
State Accepted
Headers show

Commit Message

Martin Krafft Feb. 5, 2010, 2:18 a.m. UTC
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>
---
 apps/patchwork/bin/update-patchwork-status.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/apps/patchwork/bin/update-patchwork-status.py b/apps/patchwork/bin/update-patchwork-status.py
index c774d63..2da5d23 100755
--- a/apps/patchwork/bin/update-patchwork-status.py
+++ b/apps/patchwork/bin/update-patchwork-status.py
@@ -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]