mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
Fix for #221
This commit is contained in:
parent
2f02baaf90
commit
1b731164df
@ -77,8 +77,7 @@ export OSXCROSS_NO_10_5_DEPRECATION_WARNING=1
|
|||||||
|
|
||||||
pushd $BUILD_DIR &>/dev/null
|
pushd $BUILD_DIR &>/dev/null
|
||||||
|
|
||||||
FULL_CLONE=1 \
|
get_sources https://github.com/llvm/llvm-project.git $BRANCH "compiler-rt"
|
||||||
get_sources https://github.com/llvm/llvm-project.git $BRANCH "compiler-rt"
|
|
||||||
|
|
||||||
if [ $f_res -eq 1 ]; then
|
if [ $f_res -eq 1 ]; then
|
||||||
pushd "$CURRENT_BUILD_PROJECT_NAME/compiler-rt" &>/dev/null
|
pushd "$CURRENT_BUILD_PROJECT_NAME/compiler-rt" &>/dev/null
|
||||||
|
@ -280,8 +280,14 @@ function git_clone_repository
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local git_extra_opts=""
|
||||||
|
|
||||||
|
if [ -z "$FULL_CLONE" ]; then
|
||||||
|
git_extra_opts="--depth 1 "
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -d $project_name ]; then
|
if [ ! -d $project_name ]; then
|
||||||
git clone $url $args $project_name --depth 1
|
git clone $url $project_name $git_extra_opts
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pushd $project_name &>/dev/null
|
pushd $project_name &>/dev/null
|
||||||
@ -292,7 +298,7 @@ function git_clone_repository
|
|||||||
if git show-ref refs/heads/$branch &>/dev/null; then
|
if git show-ref refs/heads/$branch &>/dev/null; then
|
||||||
git fetch origin $branch
|
git fetch origin $branch
|
||||||
else
|
else
|
||||||
git fetch origin $branch:$branch --depth 1
|
git fetch origin $branch:$branch $git_extra_opts
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git checkout $branch
|
git checkout $branch
|
||||||
|
Loading…
Reference in New Issue
Block a user