Suppress git advice related to detached HEAD

This commit is contained in:
aegypius committed 2014-01-07 14:30:29 +01:00
1 parent 3a3b56c7ab
commit d208e53649
1 file changed
+1
+1
View File
@@ -8,6 +8,7 @@ git_archive_all() {
unset GIT_DIR GIT_WORK_TREE unset GIT_DIR GIT_WORK_TREE
git clone $DOKKU_ROOT/$APP $TMP_WORK_DIR > /dev/null git clone $DOKKU_ROOT/$APP $TMP_WORK_DIR > /dev/null
pushd $TMP_WORK_DIR > /dev/null pushd $TMP_WORK_DIR > /dev/null
git config advice.detachedHead false
git checkout $REV > /dev/null git checkout $REV > /dev/null
git submodule update --init --recursive > /dev/null git submodule update --init --recursive > /dev/null
find -name .git -prune -exec rm -rf {} \; > /dev/null find -name .git -prune -exec rm -rf {} \; > /dev/null