無法從 gerit 錯誤取得特定提交雜湊:伺服器不允許請求未通告的對象

無法從 gerit 錯誤取得特定提交雜湊:伺服器不允許請求未通告的對象

我已經更新了清單文件clone-depth=1,當我嘗試進行儲存庫同步時,出現以下錯誤。我們的 gerit 配置具有淺克隆所需的所有設定更改

錯誤:

Error:error: Server does not allow request for unadvertised object
Gerit config has the below settings in place 

配置:

[uploadpack]

allowTipSha1InWant = true
allowReachableSHA1InWant = true
allowAnySHA1InWant = true

有誰知道如何解決這個問題?

答案1

[uploadpack]將您列出的設定參數新增至configGerrit 專案的檔案(例如git/<project>.git/config)解決了我的問題。

相關內容