mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-07-06 02:12:17 +02:00
Fix undefined variable names
Reported-by: Christian Clauss <cclauss@me.com> Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
parent
ed6f410088
commit
e4960a53f8
@ -3516,7 +3516,7 @@ class RepoFilter(object):
|
|||||||
contents = subproc.check_output(cmd)
|
contents = subproc.check_output(cmd)
|
||||||
except subprocess.CalledProcessError as e: # pragma: no cover
|
except subprocess.CalledProcessError as e: # pragma: no cover
|
||||||
raise SystemExit(_("Failed loading %s from %s") %
|
raise SystemExit(_("Failed loading %s from %s") %
|
||||||
(decode(marks_basename), branch))
|
(decode(marks_basename), full_branch))
|
||||||
if contents:
|
if contents:
|
||||||
biggest_id = max(int(x.split()[0][1:]) for x in contents.splitlines())
|
biggest_id = max(int(x.split()[0][1:]) for x in contents.splitlines())
|
||||||
_IDS._next_id = max(_IDS._next_id, biggest_id+1)
|
_IDS._next_id = max(_IDS._next_id, biggest_id+1)
|
||||||
|
@ -9,7 +9,7 @@ near the top of git-filter-repo
|
|||||||
import git_filter_repo as fr
|
import git_filter_repo as fr
|
||||||
|
|
||||||
def handle_tag(tag):
|
def handle_tag(tag):
|
||||||
print("Decipher this: "+''.join(reversed(progress.message)))
|
print("Tagger: "+''.join(tag.tagger_name))
|
||||||
|
|
||||||
args = fr.FilteringOptions.parse_args(['--force', '--tag-callback', 'pass'])
|
args = fr.FilteringOptions.parse_args(['--force', '--tag-callback', 'pass'])
|
||||||
filter = fr.RepoFilter(args, tag_callback = handle_tag)
|
filter = fr.RepoFilter(args, tag_callback = handle_tag)
|
||||||
|
Loading…
Reference in New Issue
Block a user