Create fpc folder for git working tree. Copy .git from source.

This commit is contained in:
John Shand 2021-11-06 08:31:53 +00:00 committed by Martin
parent 9ba3e061c3
commit 5d482579e7

View File

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