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

Fix trivial bug checking for git repositories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
        repo = Repository.open(self.directory)
133
133
 
134
134
        # If this is a Git repository, just use the existing fetch_objects implementation.
135
 
        if getattr(repo, "fetch_objects", None) is None:
 
135
        if getattr(repo, "fetch_objects", None) is not None:
136
136
            return repo.fetch_objects(determine_wants, graph_walker, None, progress)
137
137
 
138
138
        wants = determine_wants(self.get_refs())