bzr-git ssh

Eric Anderson eric at pixelwareinc.com
Sun Mar 1 20:18:21 GMT 2009


Jelmer Vernooij wrote:
> John has done some work on this, adding support for it as John says with
> a / rather than a :. It's still experimental, so any testing and
> feedback about this (bugs on lp.net) would be welcome.

Tried to do a bit more digging on this. Since bzr-git didn't seem to
have git+ssh support built in but the SSH support did seem to be in
Dulwich I gave my hand at trying to see if I could get it to work.

I have attached my attempt. Please excuse the possibly poor programming.
I have not ever done any Python work. Anyway my attempt seems to get
things further but it still does not work.

# bzr branch git+ssh://git@herokugarden.com/myapp.git
Invalid path.
Syntax is: git at herokugarden.com:<app>.git where <app> is your app's name
bzr: ERROR: Not a branch: "git+ssh://git@herokugarden.com/myapp.git".

Now the non-bzr error message I believe is actually from Heroku. So I am
communicating with it. Just not specifying the path correctly. If I try
with plain git then it works:

# git clone git at herokugarden.com:myapp.git myapp
Initialized empty Git repository in /home/eric/myapp/.git/
remote: Generating pack...
remote: Done counting 65 objects.
remote: Deltifying 65 objects...
remote:  100% (65/65) done
remote: Total 65 (delta 16), reused 0 (delta 0)
Receiving objects: 100% (65/65), 78.54 KiB, done.
Resolving deltas: 100% (16/16), done.

So we know the repo exists. I notice in dulwich we are basically just
calling git-upload-pack and git-receive-pack over SSH. So I figure I
should focus on see how that works before dealing with the bzr layer. So
I run the command line I *assume* is being run:

ssh -x git at herokugarden.com 'git-upload-pack myapp.git'
Invalid path.
Syntax is: git at herokugarden.com:<app>.git where <app> is your app's name

And we can see the same error message as before. So here is where I am
stuck and my lack on knowledge on bzr, git and ssh are stopping me from
getting any further. Is there something dumb I am doing?

Thanks for any advice.

Eric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: git_ssh.diff
Type: text/x-patch
Size: 1956 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090301/24314b1f/attachment.bin 


More information about the bazaar mailing list