diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-01-30 06:41:17 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-01-30 06:41:24 +0000 |
commit | fa5ef2f7043154e9abd97282e0c876539b5b1bb0 (patch) | |
tree | 2ac7c3546a5158f101fe6c18261fbd3df33b6343 /pre_commit/git.py | |
parent | Releasing progress-linux version 2.9.3-1. (diff) | |
download | pre-commit-fa5ef2f7043154e9abd97282e0c876539b5b1bb0.tar.xz pre-commit-fa5ef2f7043154e9abd97282e0c876539b5b1bb0.zip |
Merging upstream version 2.10.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit/git.py')
-rw-r--r-- | pre_commit/git.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pre_commit/git.py b/pre_commit/git.py index 5096274..bec816c 100644 --- a/pre_commit/git.py +++ b/pre_commit/git.py @@ -61,7 +61,7 @@ def get_root() -> str: 'git failed. Is it installed, and are you in a Git repository ' 'directory?', ) - if os.path.commonpath((root, git_dir)) == git_dir: + if os.path.samefile(root, git_dir): raise FatalError( 'git toplevel unexpectedly empty! make sure you are not ' 'inside the `.git` directory of your repository.', |