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
MIT License
372 stars 81 forks source link

Archive a specific tag #72

Closed Gustry closed 5 years ago

Gustry commented 5 years ago

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! ;-)

Kentzo commented 5 years ago

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.

Kentzo commented 5 years ago

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

Gustry commented 5 years ago

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