def test_commit_invalid(self, tmpdir):
"""Verify that we can find valid commits."""
p = tmpdir.mkdir('test')
path = str(p)
repo = Repo.init(path)
file = p / 'test.txt'
file.write_text(u'Testing', encoding='utf-8')
repo.index.add(['test.txt'])
repo.index.commit('Testing')
with raises(Exception):
osa_differ.validate_commits(path, ['HEAD~1'])
评论列表
文章目录