Git push doesn't work

Hello,

by installing git with your modules installer, I can checkout the content but I cannot push in there. I get an error message:

error: Cannot access URL http://www.domain.com/git/test.git/, return code 22 fatal: git-http-push failed

Is that your problem or mine? Thanks again and great job, the services you're providing are much better than other more more and more expensive! :)

Status: 
Closed (fixed)

Comments

Howdy -- it should allow you to checkin code.

What shows up in $HOME/logs/error_log when that happens?

Also, what command is it that you're using to push the code into the repository?

Thanks!

I am using Git Extensions on Windows (7). When I push it prints these messages:

git push -u --recurse-submodules=check --progress "origin" master:master Done error: Cannot access URL http://ianaz@ianaz.com/git/test.git/, return code 22 fatal: git-http-push failed

I couldn't find any error_log for git, is there any? (used found / -name 'error_log')

Check the Apache error log for the domain, at /var/log/virtualmin/ianaz.com_error_log

Ok thanks. This is the error:

Directory index forbidden by Options directive: /home/ianaz/public_html/git/test.git/

Have you tried using the regular Linux command-line git client? I would be interested to know if that fails too ..

It fails exactly the same... :(

git push origin master

cannot access url bla bla bla return code 22 fatal: git-http-push failed

Are you by chance seeing any new errors in /var/log/virtualmin/ianaz.com_error_log?

That one you mentioned before wasn't one we were really expecting :-)

Also, can you verify that you get that "Directory index forbidden by Options directive" error each time you run the "git push" command?

I just wanted to make sure that you were seeing that error each time, rather than it just being from an unrelated attempt to access the repository.

Thanks!

You are right, that error doesn't show anymore... instead you may find this useful:

GET /git/test.git/info/refs?service=git-receive-pack HTTP/1.1" 401 716 "-" "git/1.7.10.5997.gaa4aa" GET /git/test.git/info/refs?service=git-receive-pack HTTP/1.1" 401 716 "-" "git/1.7.10.5997.gaa4aa" GET /git/test.git/info/refs?service=git-receive-pack HTTP/1.1" 200 233 "-" "git/1.7.10.5997.gaa4aa" GET /git/test.git/HEAD HTTP/1.1" 200 258 "-" "git/1.7.10.5997.gaa4aa" PROPFIND /git/test.git/ HTTP/1.1" 401 716 "-" "git/1.7.10.5997.gaa4aa"

I've solved by reinitialize repository

git --bare init --shared

Thanks anyway :) I will initialize repositories manually from now on...

Ok, glad that worked..

Previously did you only run git init ?

No, I previously created the repository using Virtualmin...

I mean on the client - you need to run git init there as well.

Automatically closed -- issue fixed for 2 weeks with no activity.