From 1eb6c4158f0ada8378fb4866065cbea1809ab600 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Fri, 18 Aug 2023 13:12:06 -0400 Subject: acid: source: Summarize commit we are building from For the sake of the logs, print out the oneline summary of the commit we deemed to be the latest available for deployment. The `git checkout "$next"` command that is run just a couple lines up would also display this information if we didn't redirect it to /dev/null. However, it also produces other noisy output such as the "You are in detached HEAD state" message or "Leaving X commits behind" warning. Therefore, just summarize the commit ourselves. Signed-off-by: Malfurious --- acid/cyche-source | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acid/cyche-source b/acid/cyche-source index e53ef6f..8d80c9c 100755 --- a/acid/cyche-source +++ b/acid/cyche-source @@ -56,6 +56,9 @@ if [ "$prev" != "$next" ]; then git checkout "$next" >/dev/null 2>&1 git submodule update --init --recursive >/dev/null 2>&1 + echo -n "Checked out " >&2 + git log -1 --oneline --no-abbrev-commit --no-decorate >&2 + exit 1 fi -- cgit v1.2.3