From patchwork Fri Feb 5 02:18:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Krafft X-Patchwork-Id: 44603 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id C69C9B7CF1 for ; Fri, 5 Feb 2010 13:20:25 +1100 (EST) Received: from clegg.madduck.net (clegg.madduck.net [193.242.105.96]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 488C5B7CB9 for ; Fri, 5 Feb 2010 13:20:23 +1100 (EST) Received: from lotus.madduck.net (lotus.madduck.net [IPv6:2001:1620:2018:2::4d6d:8b55]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "lotus.madduck.net", Issuer "CAcert Class 3 Root" (verified OK)) by clegg.madduck.net (postfix) with ESMTPS id 0D4E21D409B; Fri, 5 Feb 2010 03:20:13 +0100 (CET) Received: by lotus.madduck.net (postfix, from userid 1000) id 4E90932312; Fri, 5 Feb 2010 03:18:57 +0100 (CET) From: "martin f. krafft" To: patchwork@lists.ozlabs.org Subject: [PATCH] De-hyphenate Git commands in update-patchwork-status.py Date: Fri, 5 Feb 2010 03:18:54 +0100 Message-Id: <1265336334-26872-1-git-send-email-madduck@madduck.net> X-Mailer: git-send-email 1.6.5 X-Virus-Scanned: clamav-milter 0.95.3 at clegg X-Virus-Status: Clean Cc: "martin f. krafft" X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org 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 --- apps/patchwork/bin/update-patchwork-status.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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]