Skip to main content

Scenario: never-fetched

A splice whose upstream hasn't been fetched in this clone yet, as right after cloning the monorepo: the commits are there, the private refs with upstream's branches aren't.

  • Monorepo (vendor/a/): cloned at seed.
  • Upstream: seed, never fetched here.

Output​

setup.bash builds this state:

$ build_scenario scenario_never_fetched
$ git splice status
On branch main

?? never fetched vendor/a run 'git splice fetch vendor/a'
$ git splice fetch
ok vendor/a fetched
$ git splice status
On branch main

up to date vendor/a