File: github_checkout_branch.sh

package info (click to toggle)
python-plyer 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,808 kB
  • sloc: python: 13,395; sh: 217; makefile: 177
file content (8 lines) | stat: -rwxr-xr-x 195 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#!/bin/sh

# use real branch name instead of detached HEAD
# unless the job is created for a GitHub Pull Request
if [ "$TRAVIS_PULL_REQUEST_BRANCH" = "" ]
then
    git checkout $TRAVIS_BRANCH
fi