Create a fork in a repository or merge branches yields git error code 128

症状

When forking a repository, a message similar to that is displayed:

An error occurred while executing an external process: '/usr/bin/git clone --bare --shared /home/stash/data/data/repositories/8 /home/stash/data/data/repositories/22' exited with code 128 saying: fatal: Could not get current working directory: No such file or directory

When merging a Pull Request, a message similar to that is displayed:

Caused by: com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: '/usr/bin/git clone --no-checkout --shared -b master /var/lib/stash/data/repositories/156 /var/lib/stash/tmp/git/jamf_standard_library-merge2972724898070904938.git' exited with code 128 saying: fatal: Could not change back to '/root': Permission denied

原因

Stash has been started from a path that it doesn't have access anymore or does not exist. You can find the PWD tag of the following part of the application.xml (after you generate the Support Zip):

<PWD>/root</PWD>
<HOME>/home/stash</HOME>

ソリューション

Please start Stash from its home directory.

 

 

 

 

 

 

 

 

 

最終更新日 2013 年 11 月 15 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.