List Info

Thread: git and "dumb protocols"




git and "dumb protocols"
user name
2006-11-02 10:48:48
  Hi,

Dear diary, on Thu, Nov 02, 2006 at 11:36:07AM CET, I got a
letter
where Matthieu Moy <Matthieu.Moyimag.fr> said that...
> Is it possible with git to push to a server on which
git is not
> installed, and if so, how?

  yes, you can push using HTTP DAV - just push to an HTTP
URL; make sure
you have git-http-push compiled, it is sometimes not
compiled because it
unfortunately adds dependencies on couple of more libraries.

  Beware that this is inherently not safe for anonymous push
access,
since malicious client with write access can destroy the
repository. You
will want to protect write access to the repository by
.htaccess file.

  I think a patch that would add support for pushing over
sftp or some
other dumb protocol would be welcome. One problem is with
proper locking
of ref updates (not sure how well would sftp cope with
that), another is
that you will need to do git-update-server-info's job on the
server
side.

  If you already have SSH access to the server, why not
compile Git
there and install it to your $HOME, though?

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl
-sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo
16dioU$k"SK$/SM$nEsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/W//g;$_=pack('H*',/((..)*)$/)
-
To unsubscribe from this list: send the line
"unsubscribe git" in
the body of a message to majordomovger.kernel.org
More majordomo info at  http://vge
r.kernel.org/majordomo-info.html
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )