threads / discuss / 24465

GIT over HTTP

Subject: GIT over HTTP

## tl;dr

2 messages between Jul 22, 2010 and Jul 22, 2010.

replies: 1people: 2as markdown or json

Andreas Schneider· Jul 22, 2010, 02:03 UTC · lore

after lost of research on the www i am still at a loss on how to properly do push/pull over HTTP

it seems to work on the GIT level, however PUSHS to the remote repository do NOT show up in the file-structure: adding a file locally, then pushing to the remote repository - the file will not appear in the remote listing, however it became part of the remote repository.

in the httpd.conf i put these directives
<Location /GIT>
  AllowOverride All
  DAV on
</Location>
<Location /GIT/.git>
  AuthType Basic
  AuthName "Git"
  AuthUserFile /etc/httpd/conf/pwd
  Require valid-user
</Location>

as /GIT is the publicly accessible site- i put authentication in the /GIT/.git location

another issue i can't seem to solve: having a REWRITE directive in the /GIT directory seems to obstruct any PUSH attempt from the local repository...

any help would be highy appreciated!
	thanx,
		andreas

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IAMAS Institute of Advanced Media Arts and Sciences

	andreas schneider
	T +81-80-5538 9767
	T.F.M +1-206-350 5073, voiceMail/Fax

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SPAM FILTER notice: Please note that your mail might get caught by SPAM filtering midways. Using an unambiguous SUBJECT line helps to sort out the good from the bad ;-)

Ilari Liusvaara· Jul 22, 2010, 04:01 UTC · re: Andreas Schneider · lore

Re: GIT over HTTP

On Thu, Jul 22, 2010 at 11:03:50AM +0900, Andreas Schneider wrote:
Show 5 quoted lines
> after lost of research on the www i am still at a loss on how to
> properly do push/pull over HTTP
> 
> it seems to work on the GIT level, however PUSHS to the remote repository do
> NOT show up in the file-structure: adding a file locally, then pushing to the remote repository - the file will not appear in the remote listing, however it became part of the remote repository.

This is normal. Push does not update working copy. You would need a hook for that.

< snip dav configuration >

And hooks will not work with WebDAV. You MUST push over some smart transport, like ssh:// or HTTP with http-backend. HTTP/WebDAV does not cut it.

-Ilari

← back to recent threads