Skip to content

Commit a98ee58

Browse files
try fix detached head in travis - see: travis-ci/travis-ci#1701
1 parent dcacc0e commit a98ee58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

travis-ci/deploy2.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
YEAR=$(date +"%Y")
33
MONTH=$(date +"%m")
44
cd $TRAVIS_BUILD_DIR
5+
git clone --branch=$branch $repo
6+
git reset --hard $sha1
57
git config --global user.email "${GIT_EMAIL}"
68
git config --global user.name "${GIT_NAME}"
79
git config --global push.default simple

0 commit comments

Comments
 (0)