From e4de319f5d62b93aef2b932fec60a7962ed4970f Mon Sep 17 00:00:00 2001 From: Chris Bachhuber Date: Wed, 28 Aug 2024 15:34:46 +0200 Subject: [PATCH] Update gcamp --- config/zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/zshrc b/config/zshrc index 3ef2ffd..4c33335 100644 --- a/config/zshrc +++ b/config/zshrc @@ -156,7 +156,8 @@ pastefinish() { # aliases function gcamp(){ if ! [ -z $1 ]; then - git commit -am $1 && git push + # trying to commit a second time if the first time failed and was auto-fixed by pre-commit + (git commit -am $1 || git commit -am $1) && git push fi } function ff(){