Skip to content

Commit

Permalink
feat: teach repo-tool fetcher specific manifest
Browse files Browse the repository at this point in the history
This allows the repo-tool fetcher to download any, not just the
`default.xml` manifest.
  • Loading branch information
wucke13 committed Oct 14, 2024
1 parent e6c03d0 commit eba85d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/fetch-google-repo-tool.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ lib.makeOverridable (
, rev
, name ? "source"
, hash
, manifest ? "default.xml"
# Problem
#
# `repo` allows for the manifest to just specify a branch, defaulting to the latest commit.
Expand Down Expand Up @@ -54,7 +55,7 @@ lib.makeOverridable (
mkdir -- "$out" home
export HOME="$PWD/home"
cd "$out"
repo init --manifest-url=${escapeShellArg url} --no-repo-verify
repo init --manifest-url=${escapeShellArg url} --manifest-name=${escapeShellArg manifest} --no-repo-verify
pushd .repo/manifests > /dev/null
git fetch --all --tags
Expand Down

0 comments on commit eba85d7

Please sign in to comment.