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.