diff options
author | Glen Choo <chooglen@google.com> | 2022-05-31 23:12:34 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-06-01 10:49:51 -0700 |
commit | f1dfbd9ee010e5cdf0d931d16b4b2892b33331e5 (patch) | |
tree | 11059c68a3ec4fe9dd62bb52bcdef264b9fb2fc4 /commit.c | |
parent | 91e2e8f63ebd92295ff0eb5f4095f9e1fba8bab0 (diff) |
remote.c: reject 0-length branch names
Branch names can't be empty, so config keys with an empty branch name,
e.g. "branch..remote", are silently ignored.
Since these config keys will never be useful, make it a fatal error when
remote.c finds a key that starts with "branch." and has an empty
subsection.
Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions