diff --git a/download b/download index 9b68703ebe57..4b8c2426d46c 100755 --- a/download +++ b/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})