Bug 1882186 - Disambiguate that we are checking out a branch, not a file. r=firefox-build-system-reviewers,ahochheiden

If for some reason the branch doesn't exist, git will complain about a
file with that name not being found. (see e.g. bug 1880502 for an
example of how that may happen)

Differential Revision: https://phabricator.services.mozilla.com/D202762
This commit is contained in:
Mike Hommey 2024-02-27 02:38:48 +00:00
parent 6c8e9a5608
commit 1692f7d305

View File

@ -228,7 +228,7 @@ 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,
)