git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git svn --version requires working copy

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 10, 2016, 20:52 UTC
Message-ID
<xmqqh9as4a9s.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<8b881bf6-0b53-f917-fbe7-db22fe4910b8@cihar.com>
Michal Čihař <michal@cihar.com> writes:
Show 9 quoted lines
> I've just noticed, that running git svn --version requires working copy,
> what is quite ugly to require working copy just to figure out if git svn
> is installed and what version.
>
> $ git svn --version
> fatal: Not a git repository (or any parent up to mount point /home)
> Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
> Unable to find .git directory
>  at /usr/lib/git-core/git-svn line 347.
Wasn't this fixed sometime last month?
  ... goes and looks ...

c0071ae5 (git-svn: allow --version to work anywhere, 2016-07-22) seems to be it. Try the tip of 'master' if you can and report if it works for you. It will hopefully be part of the upcoming Git 2.10 release (the preview release is expected this coming weekend).

Thanks.
Previous: Michal Čihař
Message 2 of 2 in “git svn --version requires working copy”
  1. Michal ČihařAug 10, 2016
  2. Junio C HamanoAug 10, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.