From 45cb60738524a93d931d77eed6c31972f9ddfb14 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Tue, 12 Jul 2022 20:40:56 +0200 Subject: [PATCH] meta:hooks:pre-push: Adjust to more concise style Adjust the sample code from git to a more concise coding style, placing {do,then} on the same line and using `[` instead of `test`. --- meta/git/hooks/pre-push | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/meta/git/hooks/pre-push b/meta/git/hooks/pre-push index 9f26d6f..bfe059a 100755 --- a/meta/git/hooks/pre-push +++ b/meta/git/hooks/pre-push @@ -26,15 +26,12 @@ url="$2" zero=$(git hash-object --stdin &2 "$local_ref: Commits in progress:\n%s" "$commits" printf >&2 "Aborting push" exit 1