For worktrees, .git is a file, not a directory
git-svn-id: http://svn.osgeo.org/postgis/trunk@17922
b70326c6-7e19-0410-871a-
916f4a2858ee
# Read the svn revision number
my $svn_rev = &read_rev($target);
-# Write it
+# Write it
&write_defn($svn_rev);
if ( -d $top_srcdir."/.svn" ) {
#print STDERR "There's a ". $top_srcdir."/.svn dir\n";
$svn_info = &read_rev_svn($target);
- } elsif ( -d $top_srcdir."/.git" ) {
+ } elsif ( -e $top_srcdir."/.git" ) {
#print STDERR "There's a ". $top_srcdir."/.git dir\n";
$svn_info = &read_rev_git();
} else {