mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 02:19:31 +02:00
svn2revisioninc, Installer: use first-parent for git describe
(cherry picked from commit b26d9aa832
)
This commit is contained in:
parent
9dd05b2dec
commit
3fcf01d0c7
@ -78,6 +78,7 @@ else
|
|||||||
echo "extracting lazarus from local svn ..."
|
echo "extracting lazarus from local svn ..."
|
||||||
LazSrcDir=$(pwd | sed -e 's#/tools/install.*$##')
|
LazSrcDir=$(pwd | sed -e 's#/tools/install.*$##')
|
||||||
#Revision=$(svnversion $LazSrcDir) - comment this out as svn no longer works
|
#Revision=$(svnversion $LazSrcDir) - comment this out as svn no longer works
|
||||||
|
Revision=$(git -C $LazSrcDir describe --always --first-parent)
|
||||||
cd $TmpDir
|
cd $TmpDir
|
||||||
cp -a $LazSrcDir $TmpLazDir #can't use svn export anymore
|
cp -a $LazSrcDir $TmpLazDir #can't use svn export anymore
|
||||||
cd -
|
cd -
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
%GIT% -C %1 describe --always > gitinfo.txt
|
%GIT% -C %1 describe --always --first-parent > gitinfo.txt
|
||||||
|
|
||||||
set /P SVNINFO=<gitinfo.txt
|
set /P SVNINFO=<gitinfo.txt
|
||||||
|
|
||||||
|
@ -734,7 +734,7 @@ function TSvn2RevisionApplication.GitDescribeCommit(KeepRevStr: Boolean
|
|||||||
var
|
var
|
||||||
s: string;
|
s: string;
|
||||||
begin
|
begin
|
||||||
Result := RunCommand('git', ['describe', '--always'], s);
|
Result := RunCommand('git', ['describe', '--always', '--first-parent'], s);
|
||||||
if not Result then
|
if not Result then
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user