]> Sergey Matveev's repositories - public-inbox.git/commit
config: reject `\n' in `inboxdir'
authorEric Wong <e@yhbt.net>
Fri, 17 Jul 2020 06:07:10 +0000 (06:07 +0000)
committerEric Wong <e@yhbt.net>
Fri, 17 Jul 2020 18:54:53 +0000 (18:54 +0000)
commitd87dd0e6795870439422ee4f0039d0d76d1974b3
tree6f548bc6a49623cb183e387ba12d39a1e5f3ce3f
parent95d17835014ece9d53791a07ddf294ad2986abf9
config: reject `\n' in `inboxdir'

"\n" and other characters requiring quoting and/or escaping in
in $GIT_DIR/objects/info/alternates was not supported in git 2.11
and earlier; nor does it seem supported at all in libgit2.

This will allow us to support sharing git-cat-file or similar
endpoints across multiple inboxes via alternates.

This breaks an existing use case for anybody wacky
enough to put `\n' in the `inboxdir' pathname; but I doubt
this affects anybody.
lib/PublicInbox/Config.pm
script/public-inbox-init
t/config.t
t/init.t