我試圖以編程方式使用Rugged(Ruby綁定的libgit2)創建對現有存儲庫的提交。我試圖遵循堅固的README中提供的文檔,但我認爲它與代碼庫的當前狀態不太匹配。我一直當我嘗試運行下面的代碼得到錯誤: require 'rugged'
# Create an instance of the existing repository
repo = Rugged::Repository.new
我試圖執行讀取和此異常升高: Rugged::NetworkError: This transport isn't implemented. Sorry 我能夠獲取遠程實例: remote = Rugged::Remote.lookup(repo, remote_name)
remote.connect(:fetch)
# => Rugged::NetworkError: This trans