scripts: Fix dry run for cut-release-branch.sh

Signed-off-by: Eli Uriegas <eliuriegasfb.com>

Pull Request resolved: https://github.com/pytorch/pytorch/pull/77978

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Approved by: https://github.com/suo, https://github.com/atalman
This commit is contained in:
Eli Uriegas
2022-05-20 10:16:04 -07:00
committed by PyTorch MergeBot
parent 844368c032
commit 4220799ea7

View File

@ -43,7 +43,7 @@ for branch in "release/${RELEASE_VERSION}" "orig/release/${RELEASE_VERSION}"; do
set -x
git checkout "${GIT_REMOTE}/${GIT_BRANCH_TO_CUT_FROM}"
git checkout -b "${branch}"
git push "${GIT_REMOTE}" "${branch}"
git push -q ${DRY_RUN_FLAG} "${GIT_REMOTE}" "${branch}"
)
fi
done