mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
patch: handle 'gitpatches' being empty, but not none
This commit is contained in:
parent
81c86df26d
commit
c5a1d45b09
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user