mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
script/autobuild.py: allow to run from within git rebase -i
The 'git clone' used by autobuild.py fails if GIT_DIR and GIT_WORK_TREE are already defined in the environment. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Apr 28 15:23:24 UTC 2022 on sn-devel-184
This commit is contained in:
parent
922261d77a
commit
07081d03da
@ -31,6 +31,11 @@ os.environ["PYTHONUNBUFFERED"] = "1"
|
||||
# This speeds up testing remarkably.
|
||||
os.environ['TDB_NO_FSYNC'] = '1'
|
||||
|
||||
# allow autobuild to run within git rebase -i
|
||||
if "GIT_DIR" in os.environ:
|
||||
del os.environ["GIT_DIR"]
|
||||
if "GIT_WORK_TREE" in os.environ:
|
||||
del os.environ["GIT_WORK_TREE"]
|
||||
|
||||
def find_git_root():
|
||||
'''get to the top of the git repo'''
|
||||
|
Loading…
Reference in New Issue
Block a user