File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- set -e -u -x
2
+ set -e -u -x -o pipefail
3
3
4
4
BASEDIR=$( pwd)
5
5
PACKAGESDIR=${BASEDIR} /local-packages
6
6
7
+ filter=()
8
+ if git -C " $( dirname " $0 " ) " fetch --filter=tree:0 > /dev/null 2>&1 ; then
9
+ filter=(--filter=tree:0)
10
+ fi
11
+
7
12
function update_nuget_config {
8
13
gawk -f - -i inplace NuGet.config << EOF
9
14
/<\/packageSources>/ { if (Src) print " <add key=\"nuget\" value=\"https://api.nuget.org/v3/index.json\" />"; Src = 0 }
@@ -63,7 +68,7 @@ function backport {
63
68
64
69
function prepare_runtime {
65
70
pushd runtime
66
- git fetch
71
+ git fetch " ${filter[@]} "
67
72
# [custom_attrs] Use the image's ALC instead of the default one
68
73
# https://github.com/dotnet/runtime/pull/70346
69
74
backport " " 32670bdf9973
170
175
projects=(runtime msbuild roslyn sdk aspnetcore)
171
176
fi
172
177
173
- git submodule update --init --recursive -- " ${projects[@]} "
178
+ git submodule update " ${filter[@]} " --init --recursive -- " ${projects[@]} "
174
179
175
180
for project in " ${projects[@]} " ; do
176
181
eval " prepare_${project} "
You can’t perform that action at this time.
0 commit comments