Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fetch (just) enough refs in script/cherry-pick (#41949)
Conrad Irwinf9fb855990c0
diff --git a/script/cherry-pick b/script/cherry-pickindex 1cf94e87e1a..37106943f4d 100755--- a/script/cherry-pick+++ b/script/cherry-pick@@ -12,9 +12,8 @@ CHANNEL="$3"SHORT_SHA="${COMMIT_SHA:0:8}"NEW_BRANCH="cherry-pick-${BRANCH_NAME}-${SHORT_SHA}"-git fetch origin-git checkout "$BRANCH_NAME"-git checkout -B "$NEW_BRANCH"+git fetch --depth 2 origin +${COMMIT_SHA} ${BRANCH_NAME}+git checkout --force "origin/$BRANCH_NAME" -B "$NEW_BRANCH"git cherry-pick "$COMMIT_SHA"