diff options
-rw-r--r-- | git_command.py | 2 |
1 files changed, 2 insertions, 0 deletions
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(): | |||
135 | if retval == 0: | 135 | if retval == 0: |
136 | # Strip trailing carriage-return in path. | 136 | # Strip trailing carriage-return in path. |
137 | path = p.stdout.rstrip("\n") | 137 | path = p.stdout.rstrip("\n") |
138 | if path == "": | ||
139 | return None | ||
138 | elif retval != 1: | 140 | elif retval != 1: |
139 | # `git config --get` is documented to produce an exit status of `1` | 141 | # `git config --get` is documented to produce an exit status of `1` |
140 | # if the requested variable is not present in the configuration. | 142 | # if the requested variable is not present in the configuration. |