]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-pull.sh
pull: suppress error when no remoteref is found
[thirdparty/git.git] / git-pull.sh
index 605e9575df6c4cc08ac5fbb6c4eac2c959954e49..11ac50552cd42895c6f777c6161d2f6f22f83b97 100755 (executable)
@@ -229,7 +229,7 @@ test true = "$rebase" && {
        test -n "$curr_branch" &&
        . git-parse-remote &&
        remoteref="$(get_remote_merge_branch "$@" 2>/dev/null)" &&
-       oldremoteref=$(git merge-base --fork-point "$remoteref" $curr_branch)
+       oldremoteref=$(git merge-base --fork-point "$remoteref" $curr_branch 2>/dev/null)
 }
 orig_head=$(git rev-parse -q --verify HEAD)
 git fetch $verbosity $progress $dry_run $recurse_submodules --update-head-ok "$@" || exit 1