summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-08-11 21:58:39 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-08-11 21:58:39 -0400
commit043af589eba854c77ca21262811145625c5b640c (patch)
tree70b843ce4b0e35627c1f2d6c64f8e5aebfb7eae2
parent80dfe8a2db76eb940f59c15a9d0bffd3f05d9361 (diff)
Use `git rev-parse` to turn git revs in to commits
-rwxr-xr-xruntests6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtests b/runtests
index 1026151..581f03c 100755
--- a/runtests
+++ b/runtests
@@ -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 \