diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit index 14a1890..074c18a 100644 --- a/git-hooks/pre-commit +++ b/git-hooks/pre-commit @@ -15,12 +15,11 @@ output=$(git pull --no-rebase) # Handle non error output as otherwise it gets shown with any exit code by logseq if [ "$output" = "Already up to date." ]; then - git add -A # no output - exit 0 + : else # probably error print it to screen echo "${output}" - git add -A fi +git add -A