{"thread":{"id":"43046","subject":"git svn --version requires working copy","startedAt":"2016-08-10T19:57:27Z","lastAt":"2016-08-10T20:52:24Z","messageCount":2,"participants":["Michal Čihař","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"293631","messageId":"8b881bf6-0b53-f917-fbe7-db22fe4910b8@cihar.com","threadId":"43046","inReplyTo":null,"subject":"git svn --version requires working copy","fromName":"Michal Čihař","fromEmail":"michal@cihar.com","sentAt":"2016-08-10T16:16:22Z","receivedAt":"2016-08-10T19:57:27Z","isPatch":false,"sender":{"key":"michal@cihar.com","avatar":"https://gravatar.com/avatar/6e190a9cbe96f1cc30a1014ac9a626d63fcc25d1d2328188e722c6c90e078303?d=mp&s=160"},"body":"Hi\n\nI've just noticed, that running git svn --version requires working copy,\nwhat is quite ugly to require working copy just to figure out if git svn\nis installed and what version.\n\n$ git svn --version\nfatal: Not a git repository (or any parent up to mount point /home)\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\nUnable to find .git directory\n at /usr/lib/git-core/git-svn line 347.\n\nIs this expected behavior?\n\nThanks\n-- \n\tMichal Čihař | http://cihar.com/ | https://weblate.org/\n\n"},{"id":"293644","messageId":"xmqqh9as4a9s.fsf@gitster.mtv.corp.google.com","threadId":"43046","inReplyTo":"8b881bf6-0b53-f917-fbe7-db22fe4910b8@cihar.com","subject":"Re: git svn --version requires working copy","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2016-08-10T20:52:15Z","receivedAt":"2016-08-10T20:52:24Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Michal Čihař <michal@cihar.com> writes:\n\n> I've just noticed, that running git svn --version requires working copy,\n> what is quite ugly to require working copy just to figure out if git svn\n> is installed and what version.\n>\n> $ git svn --version\n> fatal: Not a git repository (or any parent up to mount point /home)\n> Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\n> Unable to find .git directory\n>  at /usr/lib/git-core/git-svn line 347.\n\nWasn't this fixed sometime last month?\n\n  ... goes and looks ...\n\nc0071ae5 (git-svn: allow --version to work anywhere, 2016-07-22)\nseems to be it.  Try the tip of 'master' if you can and report if it\nworks for you.  It will hopefully be part of the upcoming Git 2.10\nrelease (the preview release is expected this coming weekend).\n\nThanks.\n\n\n\n\n"}]}