/usr/bin/bzr-receive-pack is in bzr-git 0.6.12+bzr1629-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #! /usr/bin/python
import bzrlib
from bzrlib.plugin import load_plugins
load_plugins()
from bzrlib.plugins.git.server import BzrBackend
from dulwich.server import ReceivePackHandler, serve_command
import sys, os
if len(sys.argv) < 2:
print >>sys.stderr, "usage: %s <git-dir>" % os.path.basename(sys.argv[0])
sys.exit(1)
backend = BzrBackend(bzrlib.transport.get_transport("/"))
sys.exit(serve_command(ReceivePackHandler, backend=backend))
|