]> git.ipfire.org Git - thirdparty/git.git/commit - remote-testsvn.c
testsvn: respect `init.defaultBranch`
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 24 Jun 2020 14:46:36 +0000 (14:46 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Jun 2020 16:14:21 +0000 (09:14 -0700)
commit0068f2116e67fac511941442cbbf7b0109adf57a
tree58bce9855ba5bf57faa352e44a54486cdef7b521
parenta471214bd610bb415a37d5b2c3506b83549acd57
testsvn: respect `init.defaultBranch`

The default name of the initial branch in new repositories can now be
configured. The `testsvn` remote helper translates the remote Subversion
repository's branch name `trunk` to the hard-coded name `master`.
Clearly, the intention was to make the name align with Git's defaults.

So while we are not talking about a newly-created repository in the
`testsvn` context, it is a newly-created _Git_ repository, si it _still_
makes sense to use the overridden default name for the initial branch
whenever users configured it.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote-testsvn.c
t/t9020-remote-svn.sh