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

  • Committer: John Carr
  • Date: 2009-01-13 17:49:25 UTC
  • mto: (0.217.53 git-serve)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: john.carr@unrouted.co.uk-20090113174925-k3k3gutxn2xdxrj2
Use entry file_id

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)