Disable Git interactive auth when fetching deps (#20484)
This is important for branch testing, especially via HTTPS.
This commit is contained in:
parent
27ad1ebda0
commit
6c1fc8e903
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@ function clone() {
|
||||||
if [ -n "$branch" ]
|
if [ -n "$branch" ]
|
||||||
then
|
then
|
||||||
echo "Trying to use $org/$repo#$branch"
|
echo "Trying to use $org/$repo#$branch"
|
||||||
git clone https://github.com/$org/$repo.git $repo --branch $branch \
|
# Disable auth prompts: https://serverfault.com/a/665959
|
||||||
|
GIT_TERMINAL_PROMPT=0 git clone https://github.com/$org/$repo.git $repo --branch $branch \
|
||||||
"${GIT_CLONE_ARGS[@]}"
|
"${GIT_CLONE_ARGS[@]}"
|
||||||
return $?
|
return $?
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue