patch: handle 'gitpatches' being empty, but not none

This commit is contained in:
Dan Villiom Podlaski Christiansen 2011-09-11 18:49:41 +02:00
parent 81c86df26d
commit c5a1d45b09

View File

@ -1199,7 +1199,7 @@ def iterhunks(fp):
m = gitre.match(x)
if not m:
continue
if gitpatches is None:
if not gitpatches:
# scan whole input for git metadata
gitpatches = [('a/' + gp.path, 'b/' + gp.path, gp) for gp
in scangitpatch(lr, x)]