Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Issue 34 rears it's ugly head on Heroku #226

Closed
colinbowern opened this Issue · 4 comments

6 participants

@colinbowern

Just as Issue 34 outlines I'm getting the trailing slash on Heroku pushes:

C:\projects\demo_app [default tip]> hg push git+ssh://git@heroku.com:warm-leaf-289.git
pushing to git+ssh://git@heroku.com:warm-leaf-289.git/
creating and sending data
["git-receive-pack 'warm-leaf-289.git/'"]

 !  Invalid path.
 !  Syntax is: git@heroku.com:<app>.git where <app> is your app's name

abort: git remote error: The remote server unexpectedly closed the connection.

I pulled the latest build (schacon-hg-git-0.2.6-42-g0b7a273) and that's where it's happening.

Here is my patch (hack) to make it work in the mean time:

--- git_handler.py  Thu Jul 28 22:05:45 2011
+++ patched.git_handler.py  Thu Jul 28 22:11:44 2011
@@ -1066,6 +1066,8 @@

                 port = None
                 host, path = hostpath.split(hostpath_seper, 1)
+               if (host.find('heroku') > 0):
+                    path = path.rstrip('/')
                 if hostpath_seper == '/':
                     transportpath = '/' + path
                 else:
@tangzero

Works for me!

@rodcloutier

Same problem using Mercurial 2.0

@dwightgunning

Me too... fresh virtualenv on Python 2.7.

(revirda2.7)Maxwell:hellodjango dwight$ pip freeze
Django==1.3.1
distribute==0.6.24
dulwich==0.8.2
hg-git==0.3.1
mercurial==2.0.1
wsgiref==0.1.2

@konradhalas

Me too... strange.

@durin42 durin42 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.