How to clone a mercurial repository over an ssh connection initiated by fabric when http authorizati

Posted by Monika Sulik on Stack Overflow See other posts from Stack Overflow or by Monika Sulik
Published on 2010-06-11T16:35:59Z Indexed on 2010/06/11 17:23 UTC
Read the original article Hit count: 303

Filed under:
|
|

I'm attempting to use fabric for the first time and I really like it so far, but at a certain point in my deployment script I want to clone a mercurial repository. When I get to that point I get an error:

err: abort: http authorization required

My repository requires http authorization and fabric doesn't prompt me for the user and password. I can get around this by changing my repository address from:

https://hostname/repository

to:

https://user:password@hostname/repository

But for various reasons I would prefer not to go this route. Are there any other ways in which I could bypass this problem?

© Stack Overflow or respective owner

Related posts about python

Related posts about mercurial