git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git svn --version requires working copy
@ 2016-08-10 16:16 Michal Čihař
  2016-08-10 20:52 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Čihař @ 2016-08-10 16:16 UTC (permalink / raw)
  To: git


[-- Attachment #1.1: Type: text/plain, Size: 533 bytes --]

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/


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: git svn --version requires working copy
  2016-08-10 16:16 git svn --version requires working copy Michal Čihař
@ 2016-08-10 20:52 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2016-08-10 20:52 UTC (permalink / raw)
  To: Michal Čihař; +Cc: git, Eric Wong

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.





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

end of thread, other threads:[~2016-08-10 20:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-10 16:16 git svn --version requires working copy Michal Čihař
2016-08-10 20:52 ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).