/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 bzr-receive-pack

Fix tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
import bzrlib
3
 
from bzrlib.plugin import load_plugins
4
 
load_plugins()
5
3
from bzrlib.plugins.git.server import BzrBackend
6
4
from dulwich.server import ReceivePackHandler
7
5
import sys, os
10
8
    print "usage: git-receive-pack <git-dir>"
11
9
    sys.exit(1)
12
10
 
13
 
backend = BzrBackend(bzrlib.transport.get_transport(sys.argv[1]))
 
11
backend = BzrBackend(sys.argv[1])
14
12
 
15
13
def write_fn(data):
16
14
    sys.stdout.write(data)