write-git-sha 213 B

1234567
  1. #!/bin/bash
  2. #
  3. # Write the current commit sha to the file GITSHA. This file is included in
  4. # packaging so that `docker-compose version` can include the git sha.
  5. #
  6. set -e
  7. git rev-parse --short HEAD > compose/GITSHA