{"thread":{"id":"43547","subject":"Re: Does pushing to git demon works ?","startedAt":"2006-12-11T09:13:05Z","lastAt":"2006-12-11T10:56:20Z","messageCount":3,"participants":["Alexander Litvinov","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"297247","messageId":"200612111513.05752.litvinov2004@gmail.com","threadId":"43547","inReplyTo":null,"subject":"Does pushing to git demon works ?","fromName":"Alexander Litvinov","fromEmail":"litvinov2004@gmail.com","sentAt":"2006-12-11T09:13:05Z","receivedAt":"2006-12-11T09:13:05Z","isPatch":false,"sender":{"key":"litvinov2004@gmail.com","avatar":null},"body":"I tried pushing without success:\n> git version\ngit version 1.4.4.2\n> mkdir 1 && cd 1 && git init-db\ndefaulting to local storage area\n> date >> a && git add a && git commit -m \"add a\" a\nCommitting initial tree 359e888a2d88e9dfcc9b269bc0b2fb1d9ba0013e\n> date >> a && git commit -m \"edit a\" a\n> touch .git/git-daemon-export-ok\n> git daemon --verbose --reuseaddr --listen=127.0.0.1\n... log here ...\n[21607] Extended attributes (16 bytes) exist <host=127.0.0.1>\n[21607] Request upload-pack for '/tmp/1'\n[21607] Disconnected\n[21669] Connection from 127.0.0.1:49875\n[21669] Extended attributes (16 bytes) exist <host=127.0.0.1>\n[21669] Protocol error: 'git-receive-pack /tmp/1'\n[21669] Disconnected (with error)\n\nat another conole:\n> git clone git://127.0.0.1/tmp/1 2\nremote: Generating pack...\nremote: Done counting 6 objects.\nremote: Deltifying 6 objects.\nremote:  100% (6/6) done\nremote: Total 6, written 6 (delta 0), reused 0 (delta 0)\nIndexing 6 objects.\n 100% (6/6) done\n> cd 2\n> date >> a && git commit -a -m \"2\"\n> git push\nfatal: unexpected EOF\n> \n\nWhat should I do to make it work ?\n\nThanks for help,\n"},{"id":"296447","messageId":"elj8q6$32n$2@sea.gmane.org","threadId":"43547","inReplyTo":"200612111513.05752.litvinov2004@gmail.com","subject":"Re: Does pushing to git demon works ?","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-12-11T09:38:27Z","receivedAt":"2006-12-11T09:38:27Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Alexander Litvinov wrote:\n\n> I tried pushing [to git daemon] without success:\n\n>$ git push\n> fatal: unexpected EOF\n> \n> What should I do to make it work ?\n\nYou cannot make it work. Git by design allow pushing only through\nauthenticated protocols. You can push via ssh+git:// and local,\nyou can push via http(s):// but you have to configure WebDAV, perhaps in the\nfuture you would be able to push via ftp(s)://. The git:// and rsync://\nprotocols are read-only: you can fetch (pull) but you can't push.\n\nP.S. Please send reply also to git mailing list\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n\n"},{"id":"295412","messageId":"200612111656.20664.litvinov2004@gmail.com","threadId":"43547","inReplyTo":"elj8q6$32n$2@sea.gmane.org","subject":"Re: Does pushing to git demon works ?","fromName":"Alexander Litvinov","fromEmail":"litvinov2004@gmail.com","sentAt":"2006-12-11T10:56:20Z","receivedAt":"2006-12-11T10:56:20Z","isPatch":false,"sender":{"key":"litvinov2004@gmail.com","avatar":null},"body":"В сообщении от Monday 11 December 2006 15:38 Jakub Narebski написал(a):\n> Alexander Litvinov wrote:\n> > I tried pushing [to git daemon] without success:\n> >\n> >$ git push\n> > fatal: unexpected EOF\n> >\n> > What should I do to make it work ?\n>\n> You cannot make it work. Git by design allow pushing only through\n> authenticated protocols. You can push via ssh+git:// and local,\n> you can push via http(s):// but you have to configure WebDAV, perhaps in\n> the future you would be able to push via ftp(s)://. The git:// and rsync://\n> protocols are read-only: you can fetch (pull) but you can't push.\n>\n> P.S. Please send reply also to git mailing list\n\n"}]}