Git archive over https


We want to use git archive in order to grab some files from a remote stored on (self-managed) gitlab. We want to use the https protocol for this in order to allow it to be used via CI using a CI job token. However, even in an interactive (non-CI) setting, it seems that https is not supported for git archive by gitlab:

git archive --remote=git@self.managed.gitlab:group/repo.git branch | tar -x
# all good

git archive --remote=https://self.managed.gitlab/group/repo.git branch | tar -x
fatal: Operation not supported by protocol.

Is there something I’m missing about using https with git archive? Or is this not supported?


Hi Harry,

we encountered the exact same problem today and are stuck without another solution.

So, anybody else have some ideas?

Have a nice day