git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Does pushing to git demon works ?
@ 2006-12-11  9:13 Alexander Litvinov
  2006-12-11  9:38 ` Jakub Narebski
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Litvinov @ 2006-12-11  9:13 UTC (permalink / raw)
  To: git

I tried pushing without success:
> git version
git version 1.4.4.2
> mkdir 1 && cd 1 && git init-db
defaulting to local storage area
> date >> a && git add a && git commit -m "add a" a
Committing initial tree 359e888a2d88e9dfcc9b269bc0b2fb1d9ba0013e
> date >> a && git commit -m "edit a" a
> touch .git/git-daemon-export-ok
> git daemon --verbose --reuseaddr --listen=127.0.0.1
... log here ...
[21607] Extended attributes (16 bytes) exist <host=127.0.0.1>
[21607] Request upload-pack for '/tmp/1'
[21607] Disconnected
[21669] Connection from 127.0.0.1:49875
[21669] Extended attributes (16 bytes) exist <host=127.0.0.1>
[21669] Protocol error: 'git-receive-pack /tmp/1'
[21669] Disconnected (with error)

at another conole:
> git clone git://127.0.0.1/tmp/1 2
remote: Generating pack...
remote: Done counting 6 objects.
remote: Deltifying 6 objects.
remote:  100% (6/6) done
remote: Total 6, written 6 (delta 0), reused 0 (delta 0)
Indexing 6 objects.
 100% (6/6) done
> cd 2
> date >> a && git commit -a -m "2"
> git push
fatal: unexpected EOF
> 

What should I do to make it work ?

Thanks for help,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Does pushing to git demon works ?
  2006-12-11  9:13 Does pushing to git demon works ? Alexander Litvinov
@ 2006-12-11  9:38 ` Jakub Narebski
  2006-12-11 10:56   ` Alexander Litvinov
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Narebski @ 2006-12-11  9:38 UTC (permalink / raw)
  To: git

Alexander Litvinov wrote:

> I tried pushing [to git daemon] without success:

>$ git push
> fatal: unexpected EOF
> 
> What should I do to make it work ?

You cannot make it work. Git by design allow pushing only through
authenticated protocols. You can push via ssh+git:// and local,
you can push via http(s):// but you have to configure WebDAV, perhaps in the
future you would be able to push via ftp(s)://. The git:// and rsync://
protocols are read-only: you can fetch (pull) but you can't push.

P.S. Please send reply also to git mailing list
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Does pushing to git demon works ?
  2006-12-11  9:38 ` Jakub Narebski
@ 2006-12-11 10:56   ` Alexander Litvinov
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Litvinov @ 2006-12-11 10:56 UTC (permalink / raw)
  To: Jakub Narebski, git

В сообщении от Monday 11 December 2006 15:38 Jakub Narebski написал(a):
> Alexander Litvinov wrote:
> > I tried pushing [to git daemon] without success:
> >
> >$ git push
> > fatal: unexpected EOF
> >
> > What should I do to make it work ?
>
> You cannot make it work. Git by design allow pushing only through
> authenticated protocols. You can push via ssh+git:// and local,
> you can push via http(s):// but you have to configure WebDAV, perhaps in
> the future you would be able to push via ftp(s)://. The git:// and rsync://
> protocols are read-only: you can fetch (pull) but you can't push.
>
> P.S. Please send reply also to git mailing list


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-12-11 10:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-11  9:13 Does pushing to git demon works ? Alexander Litvinov
2006-12-11  9:38 ` Jakub Narebski
2006-12-11 10:56   ` Alexander Litvinov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).