Skip to content

Commit

Permalink
README: update vendoring to use git subrepo
Browse files Browse the repository at this point in the history
Revisiting our previous decisions in #3
after @victorlin did more testing with the monkeypox repo with
`git subtree` in nextstrain/mpox#162 and
`git subrepo` in nextstrain/mpox#164.
  • Loading branch information
joverlee521 committed Jul 31, 2023
1 parent 87ca1ed commit 5748db4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,20 @@ Some tools may only live here temporarily before finding a permanent home in

## Vendoring

Nextstrain maintained pathogen repos will use `git subtree` to vendor ingest scripts.
Nextstrain maintained pathogen repos will use [`git subrepo`](https://github.com/ingydotnet/git-subrepo) to vendor ingest scripts.
(See discussion on this decision in https://github.com/nextstrain/ingest/issues/3)

First add the latest ingest scripts to the pathogen repo by running:
If you don't already have `git subrepo` installed, follow the [git subrepo installation instructions](https://github.com/ingydotnet/git-subrepo#installation).
Then add the latest ingest scripts to the pathogen repo by running:

```
git subtree add --prefix ingest/vendored https://github.com/nextstrain/ingest HEAD --squash
git subrepo clone https://github.com/nextstrain/ingest ingest/vendored
```

Any future updates of ingest scripts can be pulled in with:

```
git subtree pull --prefix ingest/vendored https://github.com/nextstrain/ingest HEAD --squash
git subrepo pull ingest/vendored
```

## History
Expand Down

0 comments on commit 5748db4

Please sign in to comment.