diff --git a/git_command.py b/git_command.py index 3c3869a2..09ed1a79 100644 --- a/git_command.py +++ b/git_command.py @@ -135,6 +135,8 @@ def GetEventTargetPath(): if retval == 0: # Strip trailing carriage-return in path. path = p.stdout.rstrip("\n") + if path == "": + return None elif retval != 1: # `git config --get` is documented to produce an exit status of `1` # if the requested variable is not present in the configuration.