Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
Fetch branches before checkout.
Browse files Browse the repository at this point in the history
On TeamCity, git checkout throws the following error
```
+ git checkout v1.23.0-fix
error: pathspec 'v1.23.0-fix' did not match any file(s) known to git.
```
  • Loading branch information
anas-aso authored Nov 15, 2017
1 parent 03e8260 commit 00f893b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ then
echo "Release branch wasn't provided and patch is not allowed on master"
exit 1
else
git fetch
if ! git checkout ${RELEASE_BRANCH}
then
echo "Provided branch does not exits!"
Expand Down

0 comments on commit 00f893b

Please sign in to comment.