Enable archive option on git repository

'How Do I...' and 'How to...' Guide to Stash

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

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:

  • 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.