From d7f20435c736df0bf79174e9e0536a1b49cfa1d1 Mon Sep 17 00:00:00 2001 From: ovidiusabou Date: Thu, 18 May 2017 03:27:22 +0300 Subject: [PATCH] Use master for SOURCE_VERSION when building via Heroku deploy buttons The SOURCE_VERSION variable may not be filled in by Heroku. --- bin/compile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index bcd349c..f028dff 100755 --- a/bin/compile +++ b/bin/compile @@ -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