Hi,

I (nearly) successfully set up `git-http-backend`. Pulling is no problem 
but pushing hangs at this stage (just an example git push):

$ git push
Username for '<server>': niklaas
Password for '<server>': 
Counting objects: 33, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (30/30), done.
Writing objects: 100% (33/33), 26.34 MiB | 23.78 MiB/s, done.
Total 33 (delta 7), reused 0 (delta 0)

So I don't get my prompt back and the only thing I can do is CTRL-C which 
aborts pushing.

Here is my configuration of lighttpd:

$HTTP["url"] =~ "^/git" 
{                                                                               
     

        cgi.assign = ("" => 
"")                                                                             
     

        setenv.add-environment = 
(                                                                               

            "GIT_PROJECT_ROOT" => 
"/usr/local/www/data/vhosts/<server>/htdocs/git",                         
            "GIT_HTTP_EXPORT_ALL" => 
""                                                                          
        
)                                                                               
                         

        auth.require = 
(                                                                               
          

          "/" => 
(                                                                               
                

                  "method" => 
"basic",                                                                        
   

                  "realm" => "Git 
Access",                                                                       

                  "require" => 
"valid-user"                                                                    
  

                 
)                                                                               
                

        
)                                                                               
                         

        auth.backend = 
"plain"                                                                         
          

        auth.backend.plain.userfile = 
"/usr/local/etc/lighttpd/vhosts.d/<server>.plainauth"             
}

$ pkg info | grep lighttpd
lighttpd-1.4.37                Secure, fast, compliant, and flexible Web 
Server

This is from the lighttpd access log. First you can witness a working pull 
and then follows a not working push:

<my-ip> <server> - [14/Sep/2015:14:19:31 +0200] "GET 
/git/dotfiles.git/info/refs?service=git-upload-pack HTTP/1.1" 401 351 "-" 
"git/2.1.4"
<my-ip> <server> - [14/Sep/2015:14:19:39 +0200] "GET 
/git/dotfiles.git/info/refs?service=git-upload-pack HTTP/1.1" 401 351 "-" 
"git/2.1.4"
<my-ip> <server> niklaas [14/Sep/2015:14:19:40 +0200] "GET 
/git/dotfiles.git/info/refs?service=git-upload-pack HTTP/1.1" 200 339 "-" 
"git/2.1.4"
<my-ip> <server> - [14/Sep/2015:14:19:47 +0200] "GET 
/git/dotfiles.git/info/refs?service=git-receive-pack HTTP/1.1" 401 351 "-" 
"git/2.1.4"
<my-ip> <server> - [14/Sep/2015:14:19:47 +0200] "GET 
/git/dotfiles.git/info/refs?service=git-receive-pack HTTP/1.1" 401 351 "-" 
"git/2.1.4"
<my-ip> <server> niklaas [14/Sep/2015:14:19:48 +0200] "GET 
/git/dotfiles.git/info/refs?service=git-receive-pack HTTP/1.1" 200 204 "-" 
"git/2.1.4"

What am I doing wrong?

Any help is very much appreciated.

Best,

Niklaas

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to