[misc] 01/03: has-only: don't misparse diffs at ends of files

Chris West faux-guest at moszumanska.debian.org
Sat May 6 15:20:12 UTC 2017


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

faux-guest pushed a commit to branch master
in repository misc.

commit 175e58a00a895908f949a174b40c6a151cda880c
Author: Chris West (Faux) <git at goeswhere.com>
Date:   Sat May 6 16:38:00 2017 +0200

    has-only: don't misparse diffs at ends of files
---
 has-only.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/has-only.py b/has-only.py
index f7f78f6..bfbbd4e 100755
--- a/has-only.py
+++ b/has-only.py
@@ -21,6 +21,8 @@ def diff_parse(lines):
     for line in itertools.chain(lines, ['\n']):
         if line.startswith(DO_FILE_PREFIX):
             file = line[len(DO_FILE_PREFIX):].strip()
+            replacing = []
+            replacement = []
             continue
         ma = DO_DIFF_PREFIX.match(line)
         if ma:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git



More information about the Reproducible-commits mailing list