Skip to content

Commit

Permalink
jj-lib: git::fetch takes multiple remotes.
Browse files Browse the repository at this point in the history
* Reimplement `git::fetch` in terms of the new lower-level
  `GitFetch` api, which allows more control over the stages
  of the fetch.
* Make `git::fetch` to accept multiple remotes, fetch from them
  all, before calling `import_refs`.
* Set `default_branch` to None in the `GitFetchStats` return value
  from `git::fetch`. 
* Update call sites to use new `git::clone` and `git::fetch`
* Update tests: One important side-effect to note (as demonstrated
  in the changed cli test) is that when there are multiple remotes,
  all fetches must pass before `import_refs` starts; no branch
  imports if a fetch from any remote fails. This is WAI.

Fixes: #4923
  • Loading branch information
essiene committed Nov 24, 2024
1 parent cc6382a commit 08525a0
Show file tree
Hide file tree
Showing 5 changed files with 1,704 additions and 1,756 deletions.
Loading

0 comments on commit 08525a0

Please sign in to comment.