Commit Graph

8202 Commits (65bf71d387ba406d4fcf697d76151b6953176cf8)

Author SHA1 Message Date
Joey Hess 65bf71d387 organizing and pulling together syntax highlighting info 2008-10-26 19:43:57 -04:00
Joey Hess e8652cb0a5 editdiff already exists 2008-10-26 19:03:12 -04:00
Joey Hess d3d3999410 do no-op post_commit test in wrapper
This speeds up web commits by 1/4th of a second or so, since perl does
not have to start up for the post commit hook.

perl's locking is completly FuBar, since it's impossible to tell what perl
flock() really does, and thus difficult to write code in other languages
that interoperates with perl's locking. (Let alone interoperating with
existing fcntl locking from perl...)

In this particular case, I think I was able to find a way to avoid the
insanity, mostly. The C code does a true flock(2), and if perl is using an
incompatable lock method that does not use the same locking primative at
the kernel level, then the C code's test will fail, and it will go ahead
and run the perl code. Then the perl code's test will test the right thing.

On Debian, at least lately, perl's flock() does a true flock(2), so the
optimisation does work.
2008-10-26 15:13:04 -04:00
Joey Hess 7ddea03684 move untrusted committer test into the wrapper
This saves around 1/4th second per trusted commit since ikiwiki
doesn't need to start up.
2008-10-26 14:03:18 -04:00
https://brian.may.myopenid.com// b7c9682b32 fix typo. 2008-10-25 22:53:55 -04:00
https://brian.may.myopenid.com// ecd60221ff add my name 2008-10-25 22:52:09 -04:00
https://brian.may.myopenid.com// b522c708f0 Replace weirdness section with link to Debian bug report. 2008-10-25 22:51:05 -04:00
https://brian.may.myopenid.com// c231adc738 minor change 2008-10-25 22:33:31 -04:00
https://brian.may.myopenid.com// 450045d703 add link to Debian bug report. 2008-10-25 22:32:27 -04:00
https://brian.may.myopenid.com// 2e85da8e11 improve formatting 2008-10-25 22:27:04 -04:00
https://brian.may.myopenid.com// 697c54acc5 solution? 2008-10-25 22:08:29 -04:00
https://brian.may.myopenid.com// 04a9bda1e6 attach patch for http/https proxy support 2008-10-25 21:48:36 -04:00
http://xma.myopenid.com/ b44093d6d5 2008-10-25 01:51:53 -04:00
Jason Blevins d1d7a48d5a response 2008-10-24 18:10:35 -04:00
Joey Hess 3044ce0d4a other DVCS may be able to support anon push 2008-10-24 17:52:38 -04:00
Joey Hess de74b20d6e mention twitter feed 2008-10-24 17:50:14 -04:00
Joey Hess bc63bc9eea idea 2008-10-24 17:47:55 -04:00
intrigeri f20af3bec3 Git wizards required to make new anonymous push feature useful for me 2008-10-24 17:41:08 -04:00
intrigeri 52856b307b I was answered 2008-10-24 17:16:52 -04:00
Jason Blevins 62d25b61f9 Fix typo 2008-10-24 17:11:11 -04:00
Joey Hess 8b1313825c note about spoofing 2008-10-24 16:31:51 -04:00
Jason Blevins f3d017d26c Test anon Git push 2008-10-24 16:22:39 -04:00
Joey Hess 0538498ed0 links 2008-10-24 16:21:22 -04:00
Joey Hess 478bed2596 wording 2008-10-24 16:10:25 -04:00
Joey Hess 5e37e729f8 announce anonymous git push support 2008-10-24 16:08:36 -04:00
Joey Hess 47367f7ba8 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2008-10-24 15:52:06 -04:00
http://joey.kitenet.net/ 723586f8f2 make sure web edits still work :-) 2008-10-24 15:50:58 -04:00
Joey Hess 4a7ac5c251 remember how to write C code
been a while!
2008-10-24 15:49:55 -04:00
Joey Hess 146192d5b0 the pre-receive wrapper needs to be suid after all
It needs to write to the user db.
2008-10-24 15:47:42 -04:00
Joey Hess 86ea8adaf3 new tip on setting up anonymous push 2008-10-24 15:47:18 -04:00
Joey Hess 761dee41b1 export CALLER_UID 2008-10-24 15:46:29 -04:00
Joey Hess 515f3ef600 anonymous git pushes are now enabled for this wiki 2008-10-24 15:45:58 -04:00
Joey Hess 94743bd236 test 3 2008-10-24 15:41:50 -04:00
Joey Hess 41310a06ba test 2 2008-10-24 15:04:24 -04:00
Joey Hess cd2153ca41 remove, fixed the problem 2008-10-24 15:03:22 -04:00
Joey Hess 739e2ca0b4 can't lock wiki due to permissions (probably)
luckily, don't really need to here
2008-10-24 15:02:54 -04:00
Joey Hess 6422e46040 test adding a file
I hope this commit is not accepted. If it is, I have a bug. :-)
2008-10-24 14:47:31 -04:00
Joey Hess a266e1d38b test 2008-10-24 14:30:47 -04:00
Joey Hess 1a883b3c50 include temp file for attachment change too 2008-10-24 13:44:03 -04:00
Joey Hess dfef51e10e Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2008-10-24 13:30:29 -04:00
Joey Hess 0196e1f9fc updates 2008-10-24 13:29:41 -04:00
Joey Hess fbcb8553df really fix calls to check_can* 2008-10-24 13:29:30 -04:00
intrigeri 7a89dbb822 thanks, closing wishlist 2008-10-24 12:50:05 -04:00
tschwinge 0a081d78c4 Typo fix. 2008-10-24 05:40:52 -04:00
Joey Hess 0fde74b012 update 2008-10-23 18:16:55 -04:00
Joey Hess 85f4b99710 untrusted committers code seems to be fully working
Still need to investigate possible races, and test some more.
2008-10-23 18:05:57 -04:00
Joey Hess f349e4ef36 fix calls to check_*
These throw errors, do not have useful return codes.
2008-10-23 18:05:12 -04:00
Joey Hess ad9e443f22 check_canattach hooked up 2008-10-23 16:56:40 -04:00
Joey Hess 4669eab596 more work on untrusted committers
Wired up check_canedit and check_canremove, still need to deal with
check_canattach, and test.
2008-10-23 16:29:50 -04:00
Joey Hess 62962a470d Merge branch 'master' into git-anon 2008-10-23 14:09:01 -04:00