svn2revisioninc: improve lookup of git-svn-id

git-svn-id: trunk@65386 -
This commit is contained in:
martin 2021-07-06 20:18:30 +00:00
parent 506a9bd739
commit dd0c00b3a1

View File

@ -699,12 +699,12 @@ var
sha1: string;
begin
Result := False;
// git svn uses /remote/svn/<branch> as remote
sha1 := GetGitCommitInRemoteBranch('svn/*');
sha1 := GetGitCommitInRemoteBranch; // try any remote branch
if sha1 <> '' then begin
Result := GetRevisionFromGitVersion(sha1);
if not Result then begin
sha1 := GetGitCommitInRemoteBranch; // try any remote branch
// git svn uses /remote/svn/<branch> as remote
sha1 := GetGitCommitInRemoteBranch('svn/*');
Result := GetRevisionFromGitVersion(sha1);
end;
end;