git-check-ref-format.txt: fixup documentation
die is not a standard shell function. Use a different shell code for the example. Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elia Pinto committed
Sep 20, 2016 at 07:33 UTC
92dece7024fc0152c6de41a65cfb0df469c747e5
1 file changed
+2
-2
Documentation/git-check-ref-format.txt
+2
-2
@@ -118,8 +118,8 @@ $ git check-ref-format --branch @{-1}
118
* Determine the reference name to use for a new branch:
119
+
120
------------
121
-$ ref=$(git check-ref-format --normalize "refs/heads/$newbranch") ||
122
-die "we do not like '$newbranch' as a branch name."
121
+$ ref=$(git check-ref-format --normalize "refs/heads/$newbranch")||
122
+{ echo "we do not like '$newbranch' as a branch name." >&2 ; exit 1 ; }
123
------------
124
125
GIT