Launch
closed
Rui Ferreira
git (6) code (4)
2014-03-12
2013-04-18
Alfredo Matos
No
1 up votes | 0 down votes | 100%
12 comments

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

1 2 > >> (Page 1 of 2)
  • Rui Ferreira
    Rui Ferreira
    2013-04-18

    I 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
      Alfredo Matos
      2013-04-18

      Did 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 later

      On which part do I need to add a password? Should it be added to the instructions?

       
  • Alfredo Matos
    Alfredo Matos
    2013-04-19

    More 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
    Rui Ferreira
    2013-04-19

    its most likely the HTTP code being returned by the authentication handler - git seems to be picky about 401 and 403.

     
  • Rui Ferreira
    Rui Ferreira
    2013-04-19

    Alfredo, can you try?

    export GIT_CURL_VERBOSE=1
    git push ...
    

    and post the output here

     
    • Alfredo Matos
      Alfredo Matos
      2013-04-26

      Added 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-26
      Attachments
  • Rui Ferreira
    Rui Ferreira
    2013-04-26

    Alfredo, can you retry now? I've made some changes to the access handler.

     
    • Alfredo Matos
      Alfredo Matos
      2013-04-26

      It 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 ;)

       
1 2 > >> (Page 1 of 2)