2

ここにあるgitpythonのチュートリアルを見て、ステップバイステップに従っていると、私のマシンにいくつかの問題があります。環境は Windows 7、git バージョン 1.7.11.msysgit.1、Python 2.7 です。すべてが easy_install で正常にインストールされました。Repo オブジェクトが正常に作成され、コマンドのようなコマンドが機能repo.tree()repo.branchesます。私が行うと、repo.is_dirty()特定のファイルが見つからないというエラーが発生します。 WindowsError: [Error 2] The system cannot find the file specified.何か案は?

path = "c:\\path_to_repo"
repo = Repo(path)
assert repo.bare == False
print repo.tree()

repo.branches

print dir(repo)

#these always crash...
repo.is_dirty()

TIA にお問い合わせください。

4

1 に答える 1