From: Don Zickus on gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/968#note_527319600

>
>
>
> 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.
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to