mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 11:38:04 +02:00
rpm: using git checkout instead of restore for older git
This commit is contained in:
parent
63bbffea90
commit
6412953df2
@ -57,10 +57,11 @@ if [ "$WithTempDir" = "yes" ]; then
|
||||
if [ -d $TmpDir ]; then
|
||||
rm -rf $TmpDir
|
||||
fi
|
||||
mkdir -p $TmpDir/$PkgName
|
||||
|
||||
echo "extracting FPC from local git ..."
|
||||
git -C $FPCSrcDir --work-tree=$TmpDir/$PkgName restore .
|
||||
mkdir -p $TmpDir/$PkgName
|
||||
cp -a $FPCSrcDir/.git $TmpDir/$PkgName/
|
||||
git -C $TmpDir/$PkgName checkout $TmpDir/$PkgName
|
||||
rm -rf $TmpDir/$PkgName/.git*
|
||||
else
|
||||
TmpDir=$FPCSrcDir
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user