From: Patrick Donnelly Date: Thu, 27 Jun 2024 16:22:05 +0000 (-0400) Subject: script/ceph-backport: only fetch the merge sha1 X-Git-Tag: v20.0.0~1254^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F58355%2Fhead;p=ceph.git script/ceph-backport: only fetch the merge sha1 Rather than doing a full fetch every time. Signed-off-by: Patrick Donnelly --- diff --git a/src/script/ceph-backport.sh b/src/script/ceph-backport.sh index bf2d1061426..a56509e3d3a 100755 --- a/src/script/ceph-backport.sh +++ b/src/script/ceph-backport.sh @@ -292,7 +292,7 @@ function cherry_pick_phase { git checkout -b "$local_branch" FETCH_HEAD fi - git fetch "$upstream_remote" "pull/$original_pr/head:pr-$original_pr" + git fetch "$upstream_remote" "$merge_commit_sha" set +x maybe_restore_set_x