From: Don Zickus on
gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/968#note_52731...
Thorsten Leemhuis started a new discussion on redhat/scripts/ci/ark-
create-release.sh:
https://gitlab.com/cki-project/kernel-
ark/-/merge_requests/968#note_527013197
> git checkout ark-latest
> git reset --hard "$RELEASE"
>
> +# Create ark-infra branch
> +# Save the files needed
> +tar -cf tmp.tar makefile Makefile.rhelver redhat/
> +
> +git checkout ark-infra
> +git reset --hard master
> +
> +tar -xf tmp.tar
FWIW; I think you can avoid creating and extracting a tmp tar file
like this:
`git archive --format=tar ark-latest makefile Makefile.rhelver redhat/
| tar -x`
Nice! Let me try that. Thanks for the tip!
/me suspects someone will come around the corner and say 'you can even
directly
checkout the files like this…', but couldn't find a way to do
that
Yeah I think there is a git-cat-file that does something like that. Not
sure if it works for directories. Let work with your git-archive
command
for now.