Followed the steps for adding code to the git repository failed, on new project entitled Hello World.
git remote add origin http://alfmatos@opensourceprojects.eu/git/p/helloworld/code-0
Cannot push:
git push origin master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 292 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
error: RPC failed; result=22, HTTP code = 401
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Discussion
-
Rui Ferreira
2013-04-18I see multiple push requests in the log for user alfmatos with NO password (for the hello world project).
Last edit: Rui Ferreira 2013-04-18-
Alfredo Matos
2013-04-18Did i miss that in the sample steps?
cd myproject
git remote add origin http://alfmatos@opensourceprojects.eu/git/p/helloworld/code-0
git push origin master
git branch --set-upstream master origin/master # so 'git pull' will work laterOn which part do I need to add a password? Should it be added to the instructions?
-
Rui Ferreira
2013-04-18Git should prompt you for a password during the push
-
Alfredo Matos
2013-04-19More info: just checked out a github rw http account and git asked me for password... Not sure why it doesn't ask me for a pass here.
-
Rui Ferreira
2013-04-19its most likely the HTTP code being returned by the authentication handler - git seems to be picky about 401 and 403.
-
Rui Ferreira
2013-04-19Alfredo, can you try?
export GIT_CURL_VERBOSE=1 git push ...
and post the output here
-
Alfredo Matos
2013-04-26Added the output of a push (to a fake repo, 404's in the end, but everything else is ok).
This prompted me for password and logged in successfully.
(still seeing the attachment bug on posting comment replies with attachment. Editing the comment and re-adding the attachment worked.)
Last edit: Alfredo Matos 2013-04-26Attachments
-
Rui Ferreira
2013-04-26Alfredo, can you retry now? I've made some changes to the access handler.
-
Alfredo Matos
2013-04-26It worked. Process was straightforward and prompted for a password.
Now all we need to do, is add instructions to add .netrc users to automate the process ;)