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=a4123d08a79b448628dde6b4f91db9ea29c3fe6a;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 bf2d1061426b..a56509e3d3ab 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