summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2021-08-11 13:26:41 +0200
committerStefan Metzmacher <metze@samba.org>2021-08-12 11:08:14 +0000
commitf9ed3a8cb95551bb30a1f8ecf4030a3f701176c7 (patch)
treee4e7de94d4131978cb48bb0357e05eba34f0a6cd
parent24c95d2523fd686025bcb7cab88ee2335fab2241 (diff)
downloadsamba-f9ed3a8cb95551bb30a1f8ecf4030a3f701176c7.tar.gz
script/bisect-test.py: add support git worktree
.git is not always a directory, with 'git worktree' it's a file. Note we could also use 'git rev-parse --show-toplevel', but that's a patch for another day. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit c7f85146cb50795afcbb1c607e87d163d241c79a)
-rwxr-xr-xscript/bisect-test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/bisect-test.py b/script/bisect-test.py
index b87df54ac09..7c5cd635f58 100755
--- a/script/bisect-test.py
+++ b/script/bisect-test.py
@@ -48,7 +48,7 @@ def find_git_root():
'''get to the top of the git repo'''
p = os.getcwd()
while p != '/':
- if os.path.isdir(os.path.join(p, ".git")):
+ if os.path.exists(os.path.join(p, ".git")):
return p
p = os.path.abspath(os.path.join(p, '..'))
return None