-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git.rs: Fix bug where a forgotten branch couldn't be fetched
The fix is slightly messy, but I don't know a better way without reworking the logic of `jj git fetch` and `jj git push` in-depth. This bug was originally reported by @arxanas in a [Discord discussion]. [Discord discussion]: https://discord.com/channels/968932220549103686/969829516539228222/1114997445949136936 Summary: > How do I proceed here to check out the remote branch that I know exists? > > ``` > $ jj git fetch --branch 'arxanas/fsmonitor' --remote origin > Nothing changed. > $ jj checkout arxanas/fsmonitor > Error: Revision "arxanas/fsmonitor" doesn't exist > $ jj checkout arxanas/fsmonitor@origin > Error: Revision "arxanas/fsmonitor@origin" doesn't exist > $ git show origin/arxanas/fsmonitor > commit bac43af (origin/arxanas/fsmonitor, refs/jj/keep/bac43af9fbaade36a2374f4b2a7457ca4caa05ee) > Author: Waleed Khan <[email protected]> > Date: Fri Jun 10 18:58:21 2022 -0700 > > fsmonitor: add `.watchmanconfig` to repo > > This identifies the directory as Watchman-enabled. Additional config settings can go in this file. > > diff --git a/.watchmanconfig b/.watchmanconfig > new file mode 100644 > index 00000000..0967ef42 > --- /dev/null > +++ b/.watchmanconfig > @@ -0,0 +1 @@ > +{} > ```
- Loading branch information
Showing
4 changed files
with
133 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters