Use rev-parse to get short commit hash

Also ensures unique
This commit is contained in:
Thomas Grainger 2013-05-31 03:05:58 +02:00
parent 0aa0c69ba3
commit fe0104f336
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ node_js:
- "0.10"
install:
- "bin/installDeps.sh"
- "export GIT_HASH=$(cat .git/HEAD | head -c 7)"
- "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
before_script:
- "tests/frontend/travis/sauce_tunnel.sh"
script: