#592495 git-svn: info fails with absolute path

#592495#5
Date:
2010-08-10 14:26:32 UTC
From:
To:
I have some cmake based builds that want to automatically figure
out the revision of the working copy we're building. Normally, this
is done by running "svn info <root path>", with an absolute path.

I'm trying to replace svn with git-svn here, and simply changing
this to "git svn info <root path>" doesn't work with absolute paths.
Since all other git commands do, I don't see why this should be the case.

themel@socrates:~/work/goodiebag/oid-store/build/tests$ git svn info .
Path: .
URL: https://localhost:4443/svn/goodiebag/trunk/oid-store/build/tests
Repository Root: https://localhost:4443/svn/goodiebag
Repository UUID: 44d14b40-c8c2-4cd3-bf89-d70a8d035482
Revision: 24
Node Kind: directory
Schedule: normal
Last Changed Author:
Last Changed Rev:
Last Changed Date: 2010-08-10 16:24:05 +0200 (Tue, 10 Aug 2010)

themel@socrates:~/work/goodiebag/oid-store/build/tests$ git svn info $PWD
svn: 'home/themel/work/goodiebag/oid-store/build/tests' is not under version control

#592495#10
Date:
2010-08-11 00:02:21 UTC
From:
To:
tags 592495 + upstream
severity 592495 wishlist
thanks

Hi Eric,

Thomas Themel wrote:

Sounds sensible to me.  Any advice for people who would like to
work on this?

#592495#19
Date:
2010-08-11 20:42:13 UTC
From:
To:
Jonathan Nieder <jrnieder@gmail.com> wrote:

Hi Jonathan,

One should have to resolve the GIT_DIR from $root_path first (using
(rev-parse --git-dir) and then probably use ls-tree to figure out
how to canonicalize the path based on $root_path.

I've been stuck on David's problem[1] for a bit (and distracted by other
Free software projects, too), but this shouldn't be tough to do.

[1] - mid.gmane.org/1281159415-60900-1-git-send-email-ddkilzer@kilzer.net