diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-11 21:58:39 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-11 21:58:39 -0400 |
commit | 043af589eba854c77ca21262811145625c5b640c (patch) | |
tree | 70b843ce4b0e35627c1f2d6c64f8e5aebfb7eae2 | |
parent | 80dfe8a2db76eb940f59c15a9d0bffd3f05d9361 (diff) |
Use `git rev-parse` to turn git revs in to commits
-rwxr-xr-x | runtests | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2,12 +2,16 @@ # 2018 Luke Shumaker { set -euE - COMMIT="${1:-systemd/master}" + gitrev="${1:-systemd/master}" workdir=$PWD/workdir mkdir -p -- "$workdir" gitget bare https://git.parabola.nu/~lukeshu/systemd.git "$workdir/systemd.git" + pushd "$workdir/systemd.git" + COMMIT=$(git rev-parse --verify "$gitrev") + popd + # Build systemd 232 mkdir -p "$workdir/build-232" ./osi-mk \ |