Skip to content

Commit 92dece7

Browse files
devzero2000gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 50b4a78 commit 92dece7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-check-ref-format.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ $ git check-ref-format --branch @{-1}
118118
* Determine the reference name to use for a new branch:
119119
+
120120
------------
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 ; }
123123
------------
124124

125125
GIT

0 commit comments

Comments
 (0)