Build scripts: GIT // git clone --depth=1 => "git describe" does not work, as no history is cloned / maybe clone the entire branch or at least depth 10000 on one single branch

This commit is contained in:
Martin 2021-10-16 10:36:49 +02:00
parent 05fdc3f8f3
commit f81cc24f83
2 changed files with 6 additions and 2 deletions

View File

@ -58,7 +58,8 @@ if [ "$WithTempDir" = "yes" ]; then
mkdir -p $TmpDir
echo "extracting FPC from local svn ..."
cp -a $FPCSrcDir $TmpDir/fpc #copies all to tmp folder for patching.
# cp -a $FPCSrcDir $TmpDir/fpc #copies all to tmp folder for patching.
git -C $FPCSrcDir --work-tree=$TmpDir/fpc restore .
else
TmpDir=$FPCSrcDir
fi

View File

@ -73,6 +73,8 @@ if [ "x$Download" = "xyes" ]; then
Revision=Exported
cd $TmpDir
svn export http://svn.freepascal.org/svn/lazarus/trunk $TmpLazDir
# git clone --depth=1 https://gitlab.com/freepascal.org/lazarus/lazarus.git $TmpLazDir
# rm -rf $TmpLazDir/.git
cd -
else
echo "extracting lazarus from local svn ..."
@ -80,7 +82,8 @@ else
#Revision=$(svnversion $LazSrcDir) - comment this out as svn no longer works
Revision=$(git -C $LazSrcDir describe --always --first-parent)
cd $TmpDir
cp -a $LazSrcDir $TmpLazDir #can't use svn export anymore
# cp -a $LazSrcDir $TmpLazDir #can't use svn export anymore
git -C $LazSrcDir --work-tree=$TmpLazDir restore .
cd -
if [ "$UseCHMHelp" = "1" ]; then
echo