Skip to content

Commit a47ad86

Browse files
committed
create_tarball.sh: make sure to just get the git hash
Signed-off-by: Jeff Squyres <[email protected]>
1 parent b18598f commit a47ad86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/nightly/create_tarball.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ do_command "git checkout $gitbranch"
177177
# Nightly tarballs are named in this format:
178178
# openmpi-${BRANCHNAME}-${YYYYMMDDHHMM}-${SHORTHASH}.tar.${COMPRESSION}
179179
timestamp=`date '+%Y%m%d%H%M'`
180-
githash=`git show '--pretty=format:%h'`
180+
githash=`git log -n 1 '--pretty=format:%h'`
181181
version="$gitbranch-$timestamp-$githash"
182182
if test -n "$debug"; then
183183
echo "*** This snapshot version: $version"

0 commit comments

Comments
 (0)