Skip to content

Commit

Permalink
mk_repo: prevent git-repo from asking for username and email
Browse files Browse the repository at this point in the history
  • Loading branch information
Atemu authored and danielfullmer committed Mar 25, 2022
1 parent 4e7ec78 commit 1bc6c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mk_repo_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def make_repo_file(url: str, ref: str,
with tempfile.TemporaryDirectory() as tmpdir:
subprocess.check_call([
'repo', 'init', f'--manifest-url={url}', f'--manifest-branch=refs/{ref_type.value}/{ref}', *REPO_FLAGS
], cwd=tmpdir)
], cwd=tmpdir, stdin=open('/dev/null')) # repo becomes non-interactive when a file is attached to stdin

local_manifests_dir = os.path.join(tmpdir, ".repo/local_manifests")
os.makedirs(local_manifests_dir, exist_ok=True)
Expand Down

0 comments on commit 1bc6c03

Please sign in to comment.