|
@@ -490,7 +490,7 @@ def check_command_status(arguments):
|
490
|
490
|
return False
|
491
|
491
|
|
492
|
492
|
|
493
|
|
-def revision_control_diff(path):
|
|
493
|
+def revision_control_diff():
|
494
|
494
|
"""Return diff from revision control system."""
|
495
|
495
|
for check, diff in REVISION_CONTROL:
|
496
|
496
|
if check_command_status(check):
|
|
@@ -527,7 +527,7 @@ if __name__ == '__main__':
|
527
|
527
|
else:
|
528
|
528
|
diff_hdl = open(args[0], mode='rt')
|
529
|
529
|
elif sys.stdin.isatty():
|
530
|
|
- diff_hdl = revision_control_diff(os.getcwd())
|
|
530
|
+ diff_hdl = revision_control_diff()
|
531
|
531
|
if not diff_hdl:
|
532
|
532
|
parser.print_help()
|
533
|
533
|
sys.exit(1)
|