when using linked git, use the same branch as the main repo
This commit is contained in:
parent
ec4f2f1d81
commit
9a845f988e
1 changed files with 2 additions and 1 deletions
3
download
3
download
|
@ -52,8 +52,9 @@ if [ -d .git ] ; then
|
|||
else
|
||||
# space-saving clone from another local workdir
|
||||
mkdir clone
|
||||
branch=$(git symbolic-ref HEAD | cut -d"/" -f 3)
|
||||
for i in $GIT_REPO_NAMES ; do
|
||||
bin/git-new-workdir $GIT_LINK_SRC/$i clone/$i
|
||||
bin/git-new-workdir $GIT_LINK_SRC/$i clone/$i $branch
|
||||
for d in clone/$i/* ; do
|
||||
if [ "${d}" != "clone/$i/git-hooks" ]; then
|
||||
ln -sfn ${d} $(basename ${d})
|
||||
|
|
Loading…
Reference in a new issue