From: Jeff King <peff@peff.net>
To: KK <horizn@wp.pl>
Cc: git@vger.kernel.org
Subject: Re: slash in branch name
Date: Wed, 17 Jun 2015 15:24:45 -0400 [thread overview]
Message-ID: <20150617192444.GD25304@peff.net> (raw)
In-Reply-To: <5581C77A.3040703@wp.pl>
On Wed, Jun 17, 2015 at 08:16:10PM +0100, KK wrote:
> remote: error: invalid key: hooks.denypush.branch.versions/4.3.2
> remote: error: invalid key: hooks.allowmerge.versions/4.3.2
> [...]
Those are syntactically bogus config keys. Keys should be of the form
section.subsection.key
and only "subsection" can contain arbitrary bytes (and of course the
value can, too). The hooks running on the server are using git's config
system in ways that were not intended. It should rearrange its
organization of the data (I cannot comment much further without seeing
the hooks themselves).
> My colleague did some research about that and it seems that this commit has
> stopped update hook working:
>
> commit b09c53a3e331211fc0154de8ebb271e48f8c7ee5
> Author: Libor Pechacek <lpechacek@suse.cz>
> Date: Sun Jan 30 20:40:41 2011 +0100
>
> Sanity-check config variable names
> [...]
>
> Could you please advise how to fix/revert this?
I guess we could add a "--no-really-i-am-abusing-git-config" option to
git-config to let these pass, at least for lookups. I am not sure that
is a good idea, though. I think your hooks are fundamentally broken for
branches with odd characters (right now you are seeing complaints on the
lookup side, but I suspect that you could not write a
"hooks.denypush.branch.versions/4.3.2" entry if you wanted to, as git
would choke on reading the config file).
-Peff
next prev parent reply other threads:[~2015-06-17 19:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-17 19:16 slash in branch name KK
2015-06-17 19:24 ` Jeff King [this message]
2015-06-17 19:38 ` KK
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150617192444.GD25304@peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=horizn@wp.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).