mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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>
This commit is contained in:
parent
50b4a7807f
commit
92dece7024
|
@ -118,8 +118,8 @@ $ git check-ref-format --branch @{-1}
|
||||||
* Determine the reference name to use for a new branch:
|
* Determine the reference name to use for a new branch:
|
||||||
+
|
+
|
||||||
------------
|
------------
|
||||||
$ ref=$(git check-ref-format --normalize "refs/heads/$newbranch") ||
|
$ ref=$(git check-ref-format --normalize "refs/heads/$newbranch")||
|
||||||
die "we do not like '$newbranch' as a branch name."
|
{ echo "we do not like '$newbranch' as a branch name." >&2 ; exit 1 ; }
|
||||||
------------
|
------------
|
||||||
|
|
||||||
GIT
|
GIT
|
||||||
|
|
Loading…
Reference in a new issue