From: Ian Jackson Date: Wed, 5 Apr 2017 12:31:45 +0000 (+0100) Subject: ownsource: process .gitignore properly X-Git-Tag: hippotat/1.0.0~55^2~86 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=commitdiff_plain;h=063bf41e5cfc587f419883a7ed45c7b51e0d6716 ownsource: process .gitignore properly Signed-off-by: Ian Jackson --- diff --git a/hippotatlib/ownsource.py b/hippotatlib/ownsource.py index ac467f0..135abeb 100644 --- a/hippotatlib/ownsource.py +++ b/hippotatlib/ownsource.py @@ -103,10 +103,10 @@ class SourceShipmentPreparer(): return [] r = [] for l in excl: - l.strip + l = l.strip() if l.startswith('#'): next if not len(l): next - r += l + r.append(l) return r def src_likeparent_git(s, src):