mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
buildbot: retrieve short commit hash properly
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.
This commit is contained in:
parent
919d9d791c
commit
6b74e196ae
@ -81,7 +81,7 @@ else
|
|||||||
[ -d minetest ] && (cd minetest && git pull) || (git clone https://github.com/minetest/minetest)
|
[ -d minetest ] && (cd minetest && git pull) || (git clone https://github.com/minetest/minetest)
|
||||||
fi
|
fi
|
||||||
cd minetest
|
cd minetest
|
||||||
git_hash=`git show | head -c14 | tail -c7`
|
git_hash=$(git rev-parse --short HEAD)
|
||||||
|
|
||||||
# Get minetest_game
|
# Get minetest_game
|
||||||
cd games
|
cd games
|
||||||
|
@ -76,7 +76,7 @@ else
|
|||||||
[ -d minetest ] && (cd minetest && git pull) || (git clone https://github.com/minetest/minetest)
|
[ -d minetest ] && (cd minetest && git pull) || (git clone https://github.com/minetest/minetest)
|
||||||
fi
|
fi
|
||||||
cd minetest
|
cd minetest
|
||||||
git_hash=`git show | head -c14 | tail -c7`
|
git_hash=$(git rev-parse --short HEAD)
|
||||||
|
|
||||||
# Get minetest_game
|
# Get minetest_game
|
||||||
cd games
|
cd games
|
||||||
|
Loading…
Reference in New Issue
Block a user