Unable to push new commit from shallow clone

お困りですか?

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

コミュニティに質問

プラットフォームについて: サーバーと Data Center のみ。この記事は、サーバーおよび Data Center プラットフォームのアトラシアン製品にのみ適用されます。

問題

When trying to push new commits in a shallow clone to Bitbucket Server, the following error is returned:

fatal: protocol error: expected old/new/ref, got 'shallow <commit hash>'

原因

When pushing commits from the command line from a local repository created from shallow clones, the push fails with the abovementioned protocol error. This functionality was added in Git version 1.9.

ソリューション

Ensure you are running Git 1.9+ on both server and client side.

最終更新日 2016 年 9 月 15 日

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

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