Page MenuHomePhabricator

git clone/push using HTTP error
OpenPublic

Asked by glz on Aug 24 2016, 4:44 PM.

Details

I'm trying to set up phabricator on a host and I got this error when trying to git clone through http:
"error: The requested URL returned error: 500 Error 1: sudo: sorry, you must have a tty to run sudo while accessing http://some.git".

The command I ran was simply "git clone http://username@host/some.git" and I typed in the VCS password I set.

I have set the diffusion.http-auth, diffusion.public-view config. Not sure if the problem is to comment out "requiretty" in sudoers which I cannot really do even I am given sudo privileges. Is there any solution or work-around? Thanks.

Notes: I tried git's "DUMB HTTP" and it worked but git repo could only be cloned and not pushed to. What I am trying to do now is "SMART HTTP" according to this link https://git-scm.com/book/en/v2/Git-on-the-Server-Smart-HTTP