/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tests/test_fetch.py

Rely less on command-line git.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
    Blob,
20
20
    Tree,
21
21
    )
 
22
from dulwich.repo import (
 
23
    Repo as GitRepo,
 
24
    )
22
25
import os
23
26
 
24
27
from bzrlib import (
59
62
    )
60
63
from bzrlib.plugins.git.tests import (
61
64
    GitBranchBuilder,
62
 
    run_git,
63
65
    )
64
66
 
65
67
 
79
81
 
80
82
    def make_git_repo(self, path):
81
83
        os.mkdir(path)
82
 
        os.chdir(path)
83
 
        run_git("init")
84
 
        os.chdir("..")
 
84
        GitRepo.init(path)
85
85
 
86
86
    def clone_git_repo(self, from_url, to_url, revision_id=None):
87
87
        oldrepos = self.open_git_repo(from_url)