From: Wesley Schwengle <wesleys@opperschaap.net>
To: git@vger.kernel.org
Subject: [PATCH 0/2] git-svn: silence bogus v1-layout migration message
Date: Thu, 27 Aug 2026 12:51:32 -0400 [thread overview]
Message-ID: <20260827165134.848207-1-wesleys@opperschaap.net> (raw)
While running `dzil build' (a Perl tool for minting and shipping
modules) without a git remote configured, git started printing
"Migrating from a git-svn v1 layout..." messages. In addition it also
created an empty `.git/svn' directory. After removing that directory, it
again repeated the behaviour on every `dzil build' invocation.
One of the plugins runs `git svn info' to probe whether the repo is an
SVN checkout. On a plain git-only repository this produced a wall of
migration text on the terminal and left behind an empty `.git/svn'
directory. I initially thought it was just a plugin being weird, but
running `git svn info' myself turned out to be the real "troublemaker".
You can do reproduce the behaviour by doing:
git init .
git svn info
This patch addresses that and uses the same pattern as
`migrate_from_v0'. I've included tests to t9107.
In addition, which was my intitial reaction: I've added a knob to
exclude git svn from being installed. When you add
`NO_GIT_SVN=YesPlease' to your make invocation, git is installed without
git-svn and no SVN tests run.
Wesley Schwengle (2):
git-svn: don't print v1-layout migration noise when there's nothing to
migrate
Makefile: add NO_GIT_SVN knob to skip building/installing git-svn
Makefile | 8 ++++++++
perl/Git/SVN/Migration.pm | 16 ++++++++++------
t/t9107-git-svn-migrate.sh | 7 +++++++
3 files changed, 25 insertions(+), 6 deletions(-)
--
2.55.0.827.g48ce2c92dc
next reply other threads:[~2026-08-27 16:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 16:51 Wesley Schwengle [this message]
2026-08-27 16:51 ` [PATCH 1/2] git-svn: don't print v1-layout migration noise when there's nothing to migrate Wesley Schwengle
2026-08-27 17:42 ` Junio C Hamano
2026-08-27 23:43 ` [PATCH v2 0/2] " Wesley Schwengle
2026-08-27 23:43 ` [PATCH v2 1/2] " Wesley Schwengle
2026-08-27 23:43 ` [PATCH v2 2/2] Makefile: add NO_GIT_SVN knob to skip building/installing git-svn Wesley Schwengle
2026-08-27 16:51 ` [PATCH " Wesley Schwengle
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=20260827165134.848207-1-wesleys@opperschaap.net \
--to=wesleys@opperschaap.net \
--cc=git@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.