Skip to content

Commit

Permalink
Include submodules in orig.tar (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
nanory committed Dec 18, 2023
1 parent 3c6e67b commit b38d63d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions container/bin/build_source
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ git_source() (
IFS='#' read -r url ref <<< "$1"
git clone --jobs $(nproc) --shallow-submodules --recurse-submodules "$url" src.git
git -C src.git archive --prefix src/ "$(get_git_tag)" > orig.tar
git -C src.git submodule foreach --recursive "git archive --prefix=src/\$displaypath/ --output=\"$(pwd)/\$sha1.tar\" \"\$sha1\" && tar --concatenate --file=\"$(pwd)/orig.tar\" \"$(pwd)/\$sha1.tar\" && rm \"$(pwd)/\$sha1.tar\""
rm -rf src.git
tar -x < orig.tar
)
Expand Down

0 comments on commit b38d63d

Please sign in to comment.