All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] git-svn: silence bogus v1-layout migration message
@ 2026-08-27 16:51 Wesley Schwengle
  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 16:51 ` [PATCH " Wesley Schwengle
  0 siblings, 2 replies; 7+ messages in thread
From: Wesley Schwengle @ 2026-08-27 16:51 UTC (permalink / raw)
  To: git

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-08-27 23:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-27 16:51 [PATCH 0/2] git-svn: silence bogus v1-layout migration message Wesley Schwengle
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

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.