/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 workingtree.py

Default to non-bare repositories when initializing a control directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
class GitWorkingTree(workingtree.WorkingTree):
59
59
    """A Git working tree."""
60
60
 
61
 
    def __init__(self, bzrdir, repo, branch):
 
61
    def __init__(self, bzrdir, repo, branch, index):
62
62
        self.basedir = bzrdir.root_transport.local_abspath('.')
63
63
        self.bzrdir = bzrdir
64
64
        self.repository = repo
77
77
        self._control_files = lockable_files.LockableFiles(
78
78
            transport.get_transport(self.controldir), 'lock', lockdir.LockDir)
79
79
        self._format = GitWorkingTreeFormat()
80
 
        self.index = self.repository._git.open_index()
 
80
        self.index = index
81
81
        self.views = self._make_views()
82
82
        self._detect_case_handling()
83
83