2
gitpythonモジュールを使用して上流に新しいgit repoをプッシュしようとしています。以下は)(私がやってるのステップであり、プッシュの実行中にエラー128gitpythonは 'git push --porcelain origin'を返します。終了コード128で返されます。
# Initialize a local git repo
init_repo = Repo.init(gitlocalrepodir+"%s" %(gitinitrepo))
# Add a file to this new local git repo
init_repo.index.add([filename])
# Initial commit
init_repo.index.commit('Initial Commit - %s' %(timestr))
# Create remote
init_repo.create_remote('origin', giturl+gitinitrepo+'.git')
# Push upstream (Origin)
init_repo.remotes.origin.push()
を取得し、gitpythonは例外をスロー:githubのに
'git push --porcelain origin' returned with exit code 128
のアクセスは、SSH経由です。
私がやっていることが間違っていますか?