Skip to content

Commit

Permalink
Use master for SOURCE_VERSION when building via Heroku deploy buttons
Browse files Browse the repository at this point in the history
The SOURCE_VERSION variable may not be filled in by Heroku.
  • Loading branch information
ovidiusabou committed May 18, 2017
1 parent 1df15f8 commit d7f2043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ echo "-----> Installed SSH key from GIT_SSH_KEY"

# checkout the revision that's being deployed
git fetch -q --depth 1 origin -a > /dev/null
git checkout -q $SOURCE_VERSION > /dev/null
git checkout -q ${SOURCE_VERSION:-master} > /dev/null
echo "-----> Fetched shallow history from $GIT_REPO_URL"

# initialize all the submodules
Expand Down

0 comments on commit d7f2043

Please sign in to comment.