Skip to content

Commit 7106584

Browse files
committed
Merge branch 'ep/doc-check-ref-format-example' into maint
A shell script example in check-ref-format documentation has been fixed. * ep/doc-check-ref-format-example: git-check-ref-format.txt: fixup documentation
2 parents a74a3b7 + 92dece7 commit 7106584

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)