mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 02:33:38 +02:00
svn2revisioninc: improve lookup of git-svn-id
git-svn-id: trunk@65386 -
This commit is contained in:
parent
506a9bd739
commit
dd0c00b3a1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user