Skip to content

Commit ddab1d3

Browse files
committed
Pass credential.interactive=false to git when cloning submodules
So that it doesn't get stuck on cloning and fails instead
1 parent cb1ebb5 commit ddab1d3

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

git_evtag_py.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,17 @@ def is_git_directory(path: Path) -> bool:
3838

3939
def ensure_submodules_init(repo: Path) -> None:
4040
subprocess.run(
41-
["git", "submodule", "update", "--init", "--recursive", "--depth", "1"],
41+
[
42+
"git",
43+
"-c",
44+
"credential.interactive=false",
45+
"submodule",
46+
"update",
47+
"--init",
48+
"--recursive",
49+
"--depth",
50+
"1",
51+
],
4252
cwd=repo,
4353
stdout=subprocess.DEVNULL,
4454
stderr=subprocess.DEVNULL,

0 commit comments

Comments
 (0)