mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-07-06 18:32:14 +02:00
filter-repo: fix skipping of blob files
Make sure commits don't reference skipped blob files. Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
parent
aba66f6d42
commit
cb29d84f48
@ -236,9 +236,10 @@ class FastExportFilter(object):
|
||||
(mode, idnum, path) = \
|
||||
re.match('M (\d+) :(\d+) (.*)\n$', self.nextline).groups()
|
||||
idnum = ids.translate( int(idnum)+self.id_offset )
|
||||
if path.startswith('"'):
|
||||
path = unquote(path)
|
||||
filechange = FileChanges('M', path, idnum, mode)
|
||||
if idnum is not None:
|
||||
if path.startswith('"'):
|
||||
path = unquote(path)
|
||||
filechange = FileChanges('M', path, idnum, mode)
|
||||
self._advance_nextline()
|
||||
elif self.nextline.startswith('D '):
|
||||
path = self.nextline[2:-1]
|
||||
|
Loading…
Reference in New Issue
Block a user