diff options
author | Kyle Meyer <kyle@kyleam.com> | 2021-04-07 19:05:24 -0400 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-04-07 19:24:04 -0400 |
commit | ea4e9025dd14f251996baf724e04fc478375b6a2 (patch) | |
tree | f0d70b4251e06ca6adca7c9f17c02f7fe4157e34 /t | |
parent | 86c2ebf085cc9897bafcb95b82890f2645f515e5 (diff) | |
download | public-inbox-ea4e9025dd14f251996baf724e04fc478375b6a2.tar.gz |
init.defaultBranch expects a branch name, not a fully qualified ref. git-init prepends "refs/heads/" automatically and unconditionally. PublicInbox::Import::default_branch, however, incorrectly passes on the init.defaultBranch value as is, leading to it being used in spots where a fully qualified ref is required. For example, with an init.defaultBranch value of "master", public-inbox-index for a v2 repository would lead to an all.git repository where HEAD's content is "ref: master" instead of "ref: refs/heads/master". Prepend "refs/heads/" to the incoming init.defaultBranch value. Fixes: 7c2f36de2fb49dd7 (import: respect init.defaultBranch)
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions