-
Notifications
You must be signed in to change notification settings - Fork 63
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
"stg branch -l" updates branch metadata incorrectly #155
Comments
Thank you, as always, @chucklever for taking the time to write up this issue. I am able to reproduce the issue. The nature of the problem is that each invocation of Workaround: run I will work-up a repair for this problem, but because there is a workaround and because the workaround only needs to be applied once, I'm not going to immediately cut a new release with this repair. |
Confirmed that this works for all branches except the current one, which leaves "branchname.stgit". Even changing to a different branch and running
Agreed, this is not a catastrophic issue. |
When upgrading from an old version 4 stack metadata format, which uses refs/heads/<branch>.stgit branches, to version 5 in the context of `stg branch --list`, only the first branch in need of upgrade would be upgraded and then the branch listing code would experience an error due to trying to access the just-deleted <branch>.stgit reference. We solve this problem by making `stg branch --list` filter old-style <branch>.stgit branches. Repairs #155 Signed-off-by: Peter Grayson <pete@jpgrayson.net>
When upgrading from an old version 4 stack metadata format, which uses refs/heads/<branch>.stgit branches, to version 5 in the context of `stg branch --list`, only the first branch in need of upgrade would be upgraded and then the branch listing code would experience an error due to trying to access the just-deleted <branch>.stgit reference. We solve this problem by making `stg branch --list` filter old-style <branch>.stgit branches. Repairs #155 Signed-off-by: Peter Grayson <pete@jpgrayson.net>
Further notes to report. Immediately after the update to branch version format 5:
The content of the entire series has spilled into the working directory, but the individual patches aren't empty. I can recover with |
@chucklever thank you for these additional details. |
I think this one is sufficiently resolved. |
This is a repository that has already been initialized with stgit (older than v1.1). The other branches that git can find here were created with "stg branch --create".
The text was updated successfully, but these errors were encountered: