Skip to content

Commit b7fad46

Browse files
committed
Travis CI not checking out a branch.
The command in `.travis.yml` that is supposed to checkout the branch did not actually check out the branch.
1 parent 74339e8 commit b7fad46

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.travis.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,9 @@ sudo: false
44
# Want 'bash' but 'c' works:
55
language: c
66

7-
branches:
8-
only:
9-
- master
10-
- /^release\//
11-
127
script:
13-
- git checkout $(
14-
git branch --contains HEAD
15-
| cut -c3-
16-
| grep -E '^(master$|release)'
17-
| head -1
18-
)
8+
# NOTE: we have to make sure we're on a branch (rather than on a detached HEAD) because tests rely on it.
9+
- git checkout -b travis-ci-dummy-branch-name
1910
- GIT_COMMITTER_NAME=Bob
2011
2112
GIT_AUTHOR_NAME='Bob Blob'

0 commit comments

Comments
 (0)