summaryrefslogtreecommitdiffstats
path: root/python/mozboot/bin/bootstrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/mozboot/bin/bootstrap.py')
-rwxr-xr-xpython/mozboot/bin/bootstrap.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/python/mozboot/bin/bootstrap.py b/python/mozboot/bin/bootstrap.py
index 8009219c1d..9752705019 100755
--- a/python/mozboot/bin/bootstrap.py
+++ b/python/mozboot/bin/bootstrap.py
@@ -204,6 +204,8 @@ def git_clone_firefox(git: Path, dest: Path, watchman: Path, head_repo, head_rev
subprocess.check_call(
[
str(git),
+ "-c",
+ "fetch.prune=true",
"clone",
"--no-checkout",
"hg::https://hg.mozilla.org/mozilla-unified",
@@ -226,7 +228,12 @@ def git_clone_firefox(git: Path, dest: Path, watchman: Path, head_repo, head_rev
)
subprocess.check_call(
- [str(git), "checkout", "FETCH_HEAD" if head_rev else "bookmarks/central"],
+ [
+ str(git),
+ "checkout",
+ "FETCH_HEAD" if head_rev else "bookmarks/central",
+ "--",
+ ],
cwd=str(dest),
env=env,
)