# git svn --version requires working copy

2 messages from 2016-08-10 to 2016-08-10. Participants: Michal Čihař, Junio C Hamano.
Thread: https://gitlist.dev/t/43046

## Michal Čihař, 2016-08-10 16:16

Subject: git svn --version requires working copy
Message-ID: <8b881bf6-0b53-f917-fbe7-db22fe4910b8@cihar.com>
URL: https://gitlist.dev/e/8b881bf6-0b53-f917-fbe7-db22fe4910b8%40cihar.com

```
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, 2016-08-10 20:52

Subject: Re: git svn --version requires working copy
Message-ID: <xmqqh9as4a9s.fsf@gitster.mtv.corp.google.com>
URL: https://gitlist.dev/e/xmqqh9as4a9s.fsf%40gitster.mtv.corp.google.com
In-Reply-To: <8b881bf6-0b53-f917-fbe7-db22fe4910b8@cihar.com>

```
Michal Čihař <michal@cihar.com> writes:

> 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.





```
