Skip to content

Commit a6fbfb4

Browse files
committed
Checkout a branch so no 'detatched head'
1 parent 05de170 commit a6fbfb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/ci

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ if [ "$GITHUB_TOKEN" != "" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRA
2121
if ! git diff-index --exit-code --name-only HEAD --; then
2222
echo "But first; there were changes so lets try and push those back to 'develop'"
2323
set -x
24+
# Checkout new branch so we're not in 'detatched head' mode
25+
git checkout -b ci/$(date +"%Y%m%d_%H%M%S")
2426
git status
2527

2628
git add -u

0 commit comments

Comments
 (0)