# [PATCH] git-check-ref-format.txt: fixup documentation

2 messages from 2016-09-20 to 2016-09-21. Participants: Elia Pinto, Junio C Hamano.
Thread: https://gitlist.dev/t/44118

## Elia Pinto, 2016-09-20 07:33

Subject: [PATCH] git-check-ref-format.txt: fixup documentation
Message-ID: <20160920073314.22485-1-gitter.spiros@gmail.com>
URL: https://gitlist.dev/e/20160920073314.22485-1-gitter.spiros%40gmail.com

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

Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
---
 Documentation/git-check-ref-format.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/git-check-ref-format.txt b/Documentation/git-check-ref-format.txt
index 91a3622..8611a99 100644
--- a/Documentation/git-check-ref-format.txt
+++ b/Documentation/git-check-ref-format.txt
@@ -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
-- 
2.10.0.645.gc4ba6eb


```

## Junio C Hamano, 2016-09-21 18:12

Subject: Re: [PATCH] git-check-ref-format.txt: fixup documentation
Message-ID: <xmqqponx86l9.fsf@gitster.mtv.corp.google.com>
URL: https://gitlist.dev/e/xmqqponx86l9.fsf%40gitster.mtv.corp.google.com
In-Reply-To: <20160920073314.22485-1-gitter.spiros@gmail.com>

```
Elia Pinto <gitter.spiros@gmail.com> writes:

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

Thanks.

```
