summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Finney <seanius@debian.org>2008-06-28 22:14:27 +0200
committerSean Finney <seanius@debian.org>2008-06-28 22:14:27 +0200
commitd1e58b6b8993c5a5a7f555323b85820a9ca09963 (patch)
tree2756058710f0dc758cd58a465923b430063c7a6e
parent255b36b8a34f2221680f6838f63d2952535f8861 (diff)
downloadpatch-tracker-d1e58b6b8993c5a5a7f555323b85820a9ca09963.tar.gz
force -p1 for diffstat generation
-rw-r--r--patchtracker/Patch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/patchtracker/Patch.py b/patchtracker/Patch.py
index c398694..c79f95c 100644
--- a/patchtracker/Patch.py
+++ b/patchtracker/Patch.py
@@ -6,13 +6,13 @@ from glob import glob
class Diffstat:
def __init__(self, patch):
self.patch = patch
- i,o = os.popen2("diffstat")
+ i,o = os.popen2("diffstat -p1")
i.write(str(patch))
i.close()
self.output = o.readlines()
def stats(self):
- i,o = os.popen2("diffstat -t")
+ i,o = os.popen2("diffstat -p1 -t")
i.write(str(self.patch))
i.close()
o.readline()