From: Junio C Hamano Date: Wed, 10 Aug 2016 20:52:15 GMT Subject: Re: git svn --version requires working copy Message-ID: In-Reply-To: <8b881bf6-0b53-f917-fbe7-db22fe4910b8@cihar.com> Michal Čihař 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.