]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
minor fix for mergefail logic
authorRudolf Polzer <divverent@xonotic.org>
Mon, 15 Apr 2013 07:48:46 +0000 (09:48 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 15 Apr 2013 07:48:46 +0000 (09:48 +0200)
misc/tools/all/git.subr

index 073c5dbacedef5cea4376ebbb67dc8097b1af3a9..69ad888f10faf3b5f84f8d7297213ba82a1b55a6 100644 (file)
@@ -620,10 +620,11 @@ case "$cmd" in
                                                o=`( cd "$d0" && git config xonotic.all.mirrorselection 2>/dev/null || true )`
                                                ( cd "$d0" && git config xonotic.all.mirrorselection try_same )
                                                if ! verbose git pull; then
-                                                       fix_upstream_rebase_mergefail || true
-                                                       check_mergeconflict "$d"
-                                                       $ECHO "Pulling failed. Press ENTER to continue, or Ctrl-C to abort."
-                                                       read -r DUMMY
+                                                       if fix_upstream_rebase_mergefail; then
+                                                               check_mergeconflict "$d"
+                                                               $ECHO "Pulling failed. Press ENTER to continue, or Ctrl-C to abort."
+                                                               read -r DUMMY
+                                                       fi
                                                else
                                                        ( cd "$d0" && git config xonotic.all.mirrorselection "$o" )
                                                        fix_upstream_rebase_mergeok || true