We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fa6c178 + 4acb0ba commit fc4b3b6Copy full SHA for fc4b3b6
repo.sh
@@ -164,6 +164,11 @@ _clone ()
164
fi
165
if [ "${SHALLOW_CLONE}" == "1" ]; then
166
git clone ${CLONE_BRANCH} -c core.symlinks=true --depth=1 "${repo}"
167
+ # Set up developers for success by tracking all remote branches, otherwise remote branches
168
+ # cannot be checked-out. This only edits a text file, so it adds negligible time.
169
+ pushd "${name}"
170
+ git remote set-branches origin '*'
171
+ popd
172
else
173
git clone ${CLONE_BRANCH} -c core.symlinks=true "${repo}"
174
0 commit comments