diff options
author | Stefan Metzmacher <metze@samba.org> | 2020-02-27 23:58:42 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2021-03-03 10:13:11 +0000 |
commit | 833739c1e8fac68582009450ac34a27695a439f0 (patch) | |
tree | 751a81a813bf7a138a86b1bb2aa9175b36edc00a | |
parent | 237a51d926e1620dd185cd55c3d9dbfb443b44e8 (diff) | |
download | samba-833739c1e8fac68582009450ac34a27695a439f0.tar.gz |
script/autobuild.py: add support git worktree
.git is not always a directory, with 'git worktree' it's a file.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit f9374d0a4ecc11acc46884feec28d138accc6dab)
-rwxr-xr-x | script/autobuild.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/autobuild.py b/script/autobuild.py index f5cf2a85ca0..890059fe342 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -37,7 +37,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 |