summaryrefslogtreecommitdiff
path: root/g
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2018-07-02 18:11:47 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-07-02 23:51:08 +0200
commit5fce97a58b8f764e35bf98128591c9a89537da05 (patch)
tree0281d0641623bbf28341321798a549964583de3c /g
parent4c475bc6763e29f7af2caadc7add42d26e1d6f75 (diff)
./g: don't exit early on ./g checkout -f
Change-Id: I33f54c365bce64ccccfeb1c58fc8e4faddb7ad77 Reviewed-on: https://gerrit.libreoffice.org/56822 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'g')
-rwxr-xr-xg2
1 files changed, 1 insertions, 1 deletions
diff --git a/g b/g
index 12d7631ff39b..746babe23539 100755
--- a/g
+++ b/g
@@ -201,7 +201,7 @@ do_checkout()
git checkout "$@" || return $?
for cmd in "$@" ; do
if [ "$cmd" = "-f" ]; then
- return 0
+ continue
elif [ "$cmd" = "-b" ] ; then
create_branch=1
elif [ "$create_branch" = "1" ] ; then