From 10b83649e920920e26c3b4e6e2d319a198156402 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 19 Jun 2019 12:20:18 -0700 Subject: Use source revision in commit message --- scripts/commit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/commit.sh') diff --git a/scripts/commit.sh b/scripts/commit.sh index 0d9ef12d..d2d9a844 100644 --- a/scripts/commit.sh +++ b/scripts/commit.sh @@ -18,7 +18,7 @@ else fi if [ -z "${commit+set}" ] ; then - commit=$(git -C "$repo" commit-tree -m "oasis built by $(id -un)" "$@" "$tag") + commit=$(git -C "$repo" commit-tree -m "oasis $(git rev-parse --short=10 HEAD)" "$@" "$tag") git -C "$repo" update-ref "refs/heads/$branch" "$commit" fi echo "$commit" >"$out.tmp" && mv "$out.tmp" "$out" -- cgit v1.2.3