-
Notifications
You must be signed in to change notification settings - Fork 67
stg branch --rename forgets to update refs for hidden patches #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@richardb64 I tried reproducing this error in tests by:
That however did not produce any Also @jpgrayson, when you get a chance take a look at the slight cleanup of the |
Closing since this was last observed on an old version of StGit (v0.19) and @NonLogicalDev was not able to reproduce with a more recent version. Please reopen if this remains an issue. |
When renaming a branch using
stg branch --rename
, the refs underrefs/patches
relating to hidden patches are missed. Any further attempt to use stgit on the affected branch gives a KeyError stacktrace.In the particular example where I hit this problem, the refs in question (for the patchname itself, and patchname.log) were in
.git/packed-refs
rather than.git/refs/patches
, but that shouldn't be relevant (provided stgit always usesgit update-ref
rather than directly editing files).Version details:
Stacked GIT 0.19-1-g2f5bb-dirty
git version 2.26.0
Python version 2.7.5 (default, Sep 26 2019, 13:23:47)
The text was updated successfully, but these errors were encountered: