Suppress git advice related to detached HEAD

This commit is contained in:
aegypius
2014-01-02 15:39:11 +01:00
parent 3a3b56c7ab
commit d208e53649

View File

@@ -8,6 +8,7 @@ git_archive_all() {
unset GIT_DIR GIT_WORK_TREE
git clone $DOKKU_ROOT/$APP $TMP_WORK_DIR > /dev/null
pushd $TMP_WORK_DIR > /dev/null
git config advice.detachedHead false
git checkout $REV > /dev/null
git submodule update --init --recursive > /dev/null
find -name .git -prune -exec rm -rf {} \; > /dev/null