Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to Modify Archive Download Structure #9903

Closed
ArctoranDev opened this issue Jan 20, 2020 · 4 comments · Fixed by #9943
Closed

Ability to Modify Archive Download Structure #9903

ArctoranDev opened this issue Jan 20, 2020 · 4 comments · Fixed by #9943
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Milestone

Comments

@ArctoranDev
Copy link

Basically just want to package repo contents directly inside a zip for the download rather than inside a folder inside the zip.

@zeripath
Copy link
Contributor

I am guessing this should be a per repository option - rather than a per download option?

Whilst we are at it we should probably just create our own archive command so that LFS files get properly brought in too.

That means it's a gonna end up being a 1.12 feature.

@guillep2k
Copy link
Member

If changes are being considered, I'd like to suggest some filter as well:

git archive --remote={remoteaddr} {ref} '*/*.css' '*/*.js'

Problem is that git archive doesn't like when any of the patterns matches no files.

@zeripath
Copy link
Contributor

Users can already set things in the gitattributes to avoid exporting certain files.

(In reality of course we have to completely rewrite this command as it doesn't work with LFS without a full checkout - which is something we need to avoid.)

@randyesq
Copy link

+1 for this feature request, but want to mention that it should be possible to do this for both the ZIP and TAR.GZ options. My use case is the ansible-galaxy client, which assumes no encapsulating directory, and only supports gzipped, tarballs (and not zip files).

@lunny lunny added this to the 1.12.0 milestone Jan 23, 2020
@lunny lunny added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Jan 23, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants