svn2revisioninc: Work in "git worktree" directories too.

(cherry picked from commit 2d54b4e146)
This commit is contained in:
Martin 2021-07-25 12:09:16 +02:00 committed by martin
parent 84f136b925
commit db8fc260ac

View File

@ -410,7 +410,7 @@ begin
if not Result then if not Result then
begin begin
GitDir:= AppendPathDelim(SourceDirectory)+'.git'; GitDir:= AppendPathDelim(SourceDirectory)+'.git';
if DirectoryExistsUTF8(GitDir) and GitInPath then if (DirectoryExistsUTF8(GitDir) or FileExistsUTF8(GitDir)) and GitInPath then
begin begin
Result := GetRevisionFromGitVersion; Result := GetRevisionFromGitVersion;
if not Result then begin if not Result then begin