Kentzo / git-archive-all

A python script wrapper for git-archive that archives a git superproject and its submodules, if it has any. Takes into account .gitattributes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Archive a specific tag

Gustry opened this issue · comments

With git archive, it's possible to archive a specific tag. It seems not possible with git-archive-all.

Thanks for this package, this should be in git core! ;-)

It is but not directly. The CLI does not accept the <tree-ish> argument, but you can always do git checkout before.

The reason is that while you can read files of the repo itself via git cat-file, you cannot do this for submodules. And this tool is designed specifically to include all submodules.

Closing the issue, as I currently cannot think of a non-destructive implementation.

Yes, it's alright. It's indeed tricky. Thanks