Skip to content

Commit

Permalink
fix codebuild: delete git checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
tongueroo committed Jan 25, 2020
1 parent ac3fe77 commit fbd53e4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .cody/docs/bin/git_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,3 @@
git config --global user.email "[email protected]"
git config --global user.name "Tung Nguyen"

set +u # cb start will not have CODEBUILD_WEBHOOK_TRIGGER set
if [ -n "$CODEBUILD_WEBHOOK_TRIGGER" ]; then # git push
BRANCH=$(echo $CODEBUILD_WEBHOOK_TRIGGER | sed "s/.*\///")
elif [ -n "$CODEBUILD_SOURCE_VERSION" ]; then # cb start
BRANCH=$CODEBUILD_SOURCE_VERSION # contains the actual branch
else
BRANCH=UNKNOWN-BRANCH
fi
git checkout $BRANCH

0 comments on commit fbd53e4

Please sign in to comment.