-
Notifications
You must be signed in to change notification settings - Fork 21
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
Challenges with collaborative usage across local instances #491
Comments
I'm also experienced difficulties when working on the same PR across multiple machines, like sometimes I would push a branch to remote without using |
Thanks for the issue, @ArpanSriv. You're right that git-spice's local state doesn't get transferred between machines, although when importing open PRs, it tries to relearn some of this information. (Strictly speaking, the state is just in a Git ref so it could be pushed to GitHub. I haven't thought about out how that would work/break yet.)
Try this instead:
Explanation:
I think a Also note to self: possible improvement to matching logic here: if remote hash doesn't match, but it is reachable from current branch head and there are no other branches between current head and remote hash, it's probably still the same branch. |
When a collaborator clones the repository, their local instance does not include the necessary git-spice configuration (e.g., branch stacks stored in
.git
). As a result, anyone else apart from me is unable to use git-spice commands to manage my stack without manually initializing or recreating the configuration.Example
I was using
gs
to manage a stack:A colleague resolved a merge conflict on a PR with the trunk branch and pushed the changes. However, they couldn’t use
gs usr
to restack the dependent pull requests due to the absence of the git-spice configuration in their local instance. The colleague eventually merged the PR manually.When I pulled the changes and ran
gs repo sync
, it got stuck, repeatedly prompting me to rebase the same commit. I had to:untrack
all branches.track
all branches in the exact same order.This situation has occurred twice, so I can provide a reproducer if required.
Issues
gs repo sync
did not work as expected and failed to recover the branch stack properly.gs
did not work on my colleague's local instance because their configuration was not initialized. (I’m not sure if this is feasible given the current storage mechanism in .git.)That said, good stuff on git-spice btw! It has become a daily driver :)
The text was updated successfully, but these errors were encountered: