pull: do not abuse 'break' inside a shell 'case'
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jacek Konieczny committed
Jun 11, 2014 at 10:47 UTC
8f92c7755ef2e2802e24eeb3a7de1727045950c0
1 file changed
-2
git-pull.sh
-2
@@ -58,11 +58,9 @@ pull_ff=$(git config pull.ff)
58
case "$pull_ff" in
59
false)
60
no_ff=--no-ff
61
- break
61
;;
62
only)
63
ff_only=--ff-only
65
- break
64
;;
65
esac
66