GeezerVison is showing github.com — Remember PR remote name for `cherry_picker --continue` · Issue #8 · python/cherry-picker
Remember PR remote name for cherry_picker --continue #8
Description
The option to set the PR remote does work with cherry_picker --continue, but currently needs to be specified explicitly, rather than being remembered from the original CLI invocation.
Reacted by 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко)
Activity
Mariatta commented on Jun 4, 2017
What --continue does right now is do git commit in the current branch (as long as it's not a master branch) then push to origin.
If we want to remember the previously specified pr-remote then it has to be stored in a temp file or something? 🤔
ncoghlan commented on Jun 4, 2017
ContributorAuthor
More actions
Aye, something along those lines. Such a file could potentially also be used to keep track of whether or not the commit step had already been completed, as before I finally realised that --pr-remote needed to be passed together with --continue, I accidentally created 3 copies of the cherry-pick commit.
One possible option: we could add .tmp-backport/ to CPython's .gitignore file, and then use that as a working directory for temporary state in cherry_picker.py.
webknjaz commented on Feb 26, 2019
FTR: Now with the work done in #295/#277 it should possible to implements storing more state-related data in git config --local (i.e. .git/config) throughout the whole backport cycle.
CAM-Gerlach commented on Jan 15, 2023
To note, the fact that this wasn't stored along with the other state was also incredibly confusing for me when attempting to reproduce #78
cmaloney commented on Oct 29, 2026
Proposing that we reuse git's remote.pushDefault for this: #198
Metadata
Metadata
Development
No branches or pull requestsIssue actions