From 7b931e3d30f60d452c30352f9c3beb6b6aaeb9a3 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Wed, 25 Aug 2021 14:54:09 -0400 Subject: [PATCH] git post-commit hook: Clean up --- .config/git/hooks/post-commit | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.config/git/hooks/post-commit b/.config/git/hooks/post-commit index 5c8f450..915ddda 100755 --- a/.config/git/hooks/post-commit +++ b/.config/git/hooks/post-commit @@ -1,5 +1,4 @@ -#! /usr/bin/env bash - -COMMITNOTIFICATION=$(git log -1 HEAD --format=reference) -notify-send 'Git Commit Success' "$COMMITNOTIFICATION" -u low +#!/usr/bin/env bash +COMMIT_SHA=$(git log -1 HEAD --format=reference) +notify-send 'Git commit success: ' "$COMMIT_SHA" -u low