You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ra...@apache.org on 2019/01/28 16:32:55 UTC

[sling-tooling-release] 14/29: Silence detached head warnings

This is an automated email from the ASF dual-hosted git repository.

radu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-release.git

commit 094a68e067bb2fa66b461bb2714891ea892777f0
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Tue Feb 6 18:37:16 2018 +0200

    Silence detached head warnings
---
 generate_javadoc_for_release.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generate_javadoc_for_release.sh b/generate_javadoc_for_release.sh
index 5408b7a..ad8db7a 100755
--- a/generate_javadoc_for_release.sh
+++ b/generate_javadoc_for_release.sh
@@ -52,7 +52,7 @@ for artifact in $artifacts; do
             fi
         fi
         echo "Exporting $artifact from source control"
-        git clone https://github.com/apache/${artifact_repo} --branch ${branch_name} ${WORKDIR}/${artifact_dir}
+        git -c advice.detachedHead=false clone https://github.com/apache/${artifact_repo} --branch ${branch_name} ${WORKDIR}/${artifact_dir}
         if [ -f patches/$artifact ]; then
             echo "Applying patch"
             pushd $WORKDIR/$artifact_dir