Re: [OS-BUILD PATCH] Export ark infrastructure files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux