~jelmer/bzr-git/705807-dpush

« back to all changes in this revision

Viewing changes to tests/test_builder.py

  • Committer: Jelmer Vernooij
  • Date: 2010-08-03 20:14:44 UTC
  • Revision ID: jelmer@samba.org-20100803201444-f03wrrpyuuybp5v1
Avoid invoking git directly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from cStringIO import StringIO
20
20
 
 
21
from dulwich.repo import Repo as GitRepo
 
22
 
21
23
from bzrlib.plugins.git import tests
22
24
 
23
25
 
244
246
class TestGitBranchBuilderReal(tests.TestCaseInTempDir):
245
247
 
246
248
    def test_create_real_branch(self):
247
 
        tests.run_git('init')
 
249
        GitRepo.init(".")
248
250
 
249
251
        builder = tests.GitBranchBuilder()
250
252
        builder.set_file(u'foo', 'contents\nfoo\n', False)