We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1b9620 commit 1ddf597Copy full SHA for 1ddf597
scripts/seed-repos.sh
@@ -58,6 +58,10 @@ while IFS=$'\t' read -r name url branch; do
58
fi
59
continue
60
61
+ if [ "$origin_url" != "$url" ]; then
62
+ git -C "$dest" -c safe.directory="$dest" remote set-url origin "$url"
63
+ origin_url="$url"
64
+ fi
65
if [ -n "${auth_header}" ] && [[ "$origin_url" == https://github.com/* ]]; then
66
git -C "$dest" -c safe.directory="$dest" -c http.extraheader="$auth_header" fetch --all --prune
67
else
0 commit comments