threads / discuss / 43046

git svn --version requires working copy

Subject: git svn --version requires working copy

## tl;dr

2 messages between Aug 10, 2016 and Aug 10, 2016.

replies: 1people: 2as markdown or json

Michal Čihař· Aug 10, 2016, 16:16 UTC · lore
Hi

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.
Is this expected behavior?
Thanks
-- 
	Michal Čihař | http://cihar.com/ | https://weblate.org/
Junio C Hamano· Aug 10, 2016, 20:52 UTC · re: Michal Čihař · lore

Re: git svn --version requires working copy

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.

← back to recent threads