summaryrefslogtreecommitdiff
path: root/download
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2011-12-15 14:18:19 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2011-12-15 14:20:30 +0100
commit9a845f988e6b5ec50ddda123cf761d8541c005fa (patch)
treef657b5824b0e6e3354896c9187f6f1cfe1f683e1 /download
parentec4f2f1d81884a1b4ddc1e1f9981636c5e443aab (diff)
when using linked git, use the same branch as the main repo
Diffstat (limited to 'download')
-rwxr-xr-xdownload3
1 files changed, 2 insertions, 1 deletions
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})