Skip to contentSkip to conversation

git-check-ref-format.txt: fixup documentation

PATCH In review Elia Pinto 2 participants 2 messages Sep 20, 2016 – Sep 21, 2016 Documentation

lore
Share & tools
lore

Elia Pinto

author
#0 lore raw

PATCH 1/1 git-check-ref-format.txt: fixup documentation

die is not a standard shell function. Use
a different shell code for the example.

---
 Documentation/git-check-ref-format.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/git-check-ref-format.txt +2 -2
index 91a3622..8611a99 100644
@@ -118,8 +118,8 @@ $ git check-ref-format --branch @{-1}
 * Determine the reference name to use for a new branch:
 +
 ------------
-$ ref=$(git check-ref-format --normalize "refs/heads/$newbranch") ||
-die "we do not like '$newbranch' as a branch name."
+$ ref=$(git check-ref-format --normalize "refs/heads/$newbranch")||
+{ echo "we do not like '$newbranch' as a branch name." >&2 ; exit 1 ; }
 ------------
 
 GIT
Signature · 1 line
2.10.0.645.gc4ba6eb
#1 lore raw
Quoted 2 lines · Elia Pinto

die is not a standard shell function. Use
a different shell code for the example.

Thanks.