aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVojta Jina2014-03-14 14:24:21 -0700
committerTobias Bosch2014-03-20 14:03:28 -0700
commit1da4e8938598b22373c8a252c7dc1f7e2334ed3f (patch)
treed530067cb937f6c0a79c824dcd8f63c400c1199f
parent83f37d78ba2c948b717dac5635bb2eec43574bd0 (diff)
downloadangular.js-1da4e8938598b22373c8a252c7dc1f7e2334ed3f.tar.bz2
chore(scripts): make the release script more flexible
Now the SHA can be short/long, whateva.
-rwxr-xr-xscripts/jenkins/release.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/jenkins/release.sh b/scripts/jenkins/release.sh
index 8c1e46bc..bb512f70 100755
--- a/scripts/jenkins/release.sh
+++ b/scripts/jenkins/release.sh
@@ -23,7 +23,7 @@ ARG_DEFS=(
)
function init {
- if [[ $(git rev-parse --short HEAD) != $COMMIT_SHA ]]; then
+ if [[ $(git rev-parse HEAD) != $(git rev-parse $COMMIT_SHA) ]]; then
echo "HEAD is not at $COMMIT_SHA"
usage
fi