Enable archive option on git repository
Symptoms
When trying to export one file from repository by using the command below, there is an error.:
git archive --remote=http://user@stash/scm/project/repo.git HEAD:file.txt
fatal: Operation not supported by protocol.
Cause
The "archive" option is disabled on the Git repository that you're trying to fetch the file.
Resolution
In order to enable it for a repository in Stash, you should:
- Find out the file system directory for the repository you want to enable the "upload-archive" through Repository System Info Plugin.
- Issue the commands:
$ cd <directory_found_through_sys_info>
$ git config daemon.uploadarch true
$ cat config
....
[daemon]
uploadarch = true
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.