]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
script/ceph-backport: only fetch the merge sha1 58355/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 27 Jun 2024 16:22:05 +0000 (12:22 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 28 Jun 2024 20:28:27 +0000 (16:28 -0400)
Rather than doing a full fetch every time.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/script/ceph-backport.sh

index bf2d1061426b19733c31de89e09ed922009e37b1..a56509e3d3abd17ca134f687df843bac53d59479 100755 (executable)
@@ -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