Add the git sha to version output

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2015-11-12 17:29:58 -05:00
commit d4b9845201
13 changed files with 67 additions and 18 deletions

7
script/write-git-sha Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
#
# Write the current commit sha to the file GITSHA. This file is included in
# packaging so that `docker-compose version` can include the git sha.
#
set -e
git rev-parse --short HEAD > compose/GITSHA