From: Jacek Konieczny <jajcus@jajcus.net>
To: git@vger.kernel.org
Cc: David Aguilar <davvid@gmail.com>,
Junio C Hamano <gitster@pobox.com>,
Jacek Konieczny <jajcus@jajcus.net>
Subject: [PATCH] pull: Do not abuse 'break' inside a shell 'case'
Date: Wed, 11 Jun 2014 10:47:45 +0200 [thread overview]
Message-ID: <1402476465-27177-1-git-send-email-jajcus@jajcus.net> (raw)
It is not C. The code would break under mksh when 'pull.ff' is set:
$ git pull
/usr/lib/git-core/git-pull[67]: break: can't break
Already up-to-date.
Signed-off-by: Jacek Konieczny <jajcus@jajcus.net>
---
git-pull.sh | 2 --
1 file changed, 2 deletions(-)
diff --git a/git-pull.sh b/git-pull.sh
index 6cd8ebc..7358fac 100755
--- a/git-pull.sh
+++ b/git-pull.sh
@@ -58,11 +58,9 @@ pull_ff=$(git config pull.ff)
case "$pull_ff" in
false)
no_ff=--no-ff
- break
;;
only)
ff_only=--ff-only
- break
;;
esac
--
2.0.0
next reply other threads:[~2014-06-11 8:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-11 8:47 Jacek Konieczny [this message]
2014-06-11 20:13 ` [PATCH] pull: Do not abuse 'break' inside a shell 'case' Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1402476465-27177-1-git-send-email-jajcus@jajcus.net \
--to=jajcus@jajcus.net \
--cc=davvid@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).