commit: 10b83649e920920e26c3b4e6e2d319a198156402
parent 211ecad3787e7245e9bd455bb7269ea9e8674a2b
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 19 Jun 2019 12:20:18 -0700
Use source revision in commit message
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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"