Use rev-parse to get short commit hash

Also ensures unique
pull/1789/head
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" - "0.10"
install: install:
- "bin/installDeps.sh" - "bin/installDeps.sh"
- "export GIT_HASH=$(cat .git/HEAD | head -c 7)" - "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
before_script: before_script:
- "tests/frontend/travis/sauce_tunnel.sh" - "tests/frontend/travis/sauce_tunnel.sh"
script: script: