Skip to content

Commit ff391f6

Browse files
achernyatlyu
authored andcommitted
Make hooks.verbose=false actually work
Previously, the function "lower" from the string object returned from running `git config hooks.verbose` would be compared with the string 'false'. Unfortunately, this results in verbose-mode always being enabled.
1 parent bee1a3c commit ff391f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

githooks/hookutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ def run(args):
2626
def hookdir_file(name):
2727
return os.path.join(os.getenv('GIT_DIR'), 'hooks', name)
2828

29-
if run(['git', 'config', 'hooks.verbose'])[0].lower == 'false':
29+
if run(['git', 'config', 'hooks.verbose'])[0].lower() == 'false':
3030
verbose = False

0 commit comments

Comments
 (0)