Skip to content

Commit

Permalink
buildbot: retrieve short commit hash properly
Browse files Browse the repository at this point in the history
Instead of trying to manually parse the output of 'git show' which can be different across different git configurations, properly use the 'git rev-parse' command that is intended for this purpose.
  • Loading branch information
Ferk authored and sfan5 committed Jul 28, 2016
1 parent 919d9d7 commit 6b74e19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion util/buildbot/buildwin32.sh
Expand Up @@ -81,7 +81,7 @@ else
[ -d minetest ] && (cd minetest && git pull) || (git clone https://github.com/minetest/minetest)
fi
cd minetest
git_hash=`git show | head -c14 | tail -c7`
git_hash=$(git rev-parse --short HEAD)

# Get minetest_game
cd games
Expand Down
2 changes: 1 addition & 1 deletion util/buildbot/buildwin64.sh
Expand Up @@ -76,7 +76,7 @@ else
[ -d minetest ] && (cd minetest && git pull) || (git clone https://github.com/minetest/minetest)
fi
cd minetest
git_hash=`git show | head -c14 | tail -c7`
git_hash=$(git rev-parse --short HEAD)

# Get minetest_game
cd games
Expand Down

0 comments on commit 6b74e19

Please sign in to comment.