Enable archive option on git repository
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.
The "archive" option is disabled on the Git repository that you're trying to fetch the file.
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