mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
scripts: Fix rename_c_identifier.py uncommitted warning
Only warn when we actually want a commit _and_ there are uncommitted changes found. Else, it is fine to rename if the script is not creating a commit. Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
96876d3ad7
commit
7a6e1f2491
@ -239,7 +239,7 @@ def main(argv):
|
||||
print("I require an even number of identifiers.", file=sys.stderr)
|
||||
return 1
|
||||
|
||||
if any_uncommitted_changes():
|
||||
if args.commit and any_uncommitted_changes():
|
||||
print("Uncommitted changes found. Not running.", file=sys.stderr)
|
||||
return 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user