Always clone deps with --depth=1 (#1908)

This commit is contained in:
Eldred Habert
2026-03-23 16:02:29 +01:00
committed by GitHub
parent 66e521e9e5
commit d9932b9031

View File

@@ -55,7 +55,7 @@ done
case "$actionname" in case "$actionname" in
--get-deps) --get-deps)
action() { # _ _ repo _ _ action() { # _ _ repo _
# libbet depends on PIL to build # libbet depends on PIL to build
if [ "$3" = "libbet" ]; then if [ "$3" = "libbet" ]; then
case "${osname%-*}" in case "${osname%-*}" in
@@ -77,13 +77,13 @@ case "$actionname" in
;; ;;
--get-hash) --get-hash)
action() { # _ _ repo _ commit action() { # _ _ repo commit
printf "%s@%s-" "$3" "$5" printf "%s@%s-" "$3" "$4"
} }
;; ;;
--get-paths) --get-paths)
action() { # _ _ repo _ _ action() { # _ _ repo _
printf "test/%s," "$3" printf "test/%s," "$3"
} }
;; ;;
@@ -91,12 +91,12 @@ case "$actionname" in
*) *)
echo "Fetching test dependency repositories" echo "Fetching test dependency repositories"
action() { # domain owner repo shallow-since commit action() { # domain owner repo commit
if [ ! -d "$3" ]; then if [ ! -d "$3" ]; then
git clone "https://$1/$2/$3.git" --recursive --shallow-since="$4" --single-branch git clone "https://$1/$2/$3.git" --revision="$4" --depth=1 --recursive --shallow-submodules
fi fi
pushd "$3" pushd "$3"
git checkout -f "$5" git checkout -f "$4"
if [ -f "../patches/$3.patch" ]; then if [ -f "../patches/$3.patch" ]; then
git apply --ignore-whitespace "../patches/$3.patch" git apply --ignore-whitespace "../patches/$3.patch"
fi fi
@@ -109,11 +109,11 @@ if ! "$external"; then
fi fi
if "$nonfree"; then if "$nonfree"; then
action github.com pret pokecrystal 2025-12-28 2bbb15675de0d2bbebc8cc9978f5c7fb15bc73b9 action github.com pret pokecrystal 2bbb15675de0d2bbebc8cc9978f5c7fb15bc73b9
action github.com pret pokered 2025-12-25 0555b42dc0ceffaae613e97cc0cf2e8c0b45013c action github.com pret pokered 0555b42dc0ceffaae613e97cc0cf2e8c0b45013c
action github.com zladx LADX-Disassembly 2025-12-22 c77af4473e7a877c68e1de34a2aaf80e9076dc35 action github.com zladx LADX-Disassembly c77af4473e7a877c68e1de34a2aaf80e9076dc35
fi fi
action github.com AntonioND ucity 2025-08-07 d1880a2a112d7c26f16c0fc06a15b6c32fdc9137 action github.com AntonioND ucity d1880a2a112d7c26f16c0fc06a15b6c32fdc9137
action github.com pinobatch libbet 2025-08-31 e42c0036b18e6e715987b88b4973389b283974c9 action github.com pinobatch libbet e42c0036b18e6e715987b88b4973389b283974c9
action github.com LIJI32 SameBoy 2025-12-29 2f4a6f231ec40ecfc0ab7df0a09eb932e7ccddec action github.com LIJI32 SameBoy 2f4a6f231ec40ecfc0ab7df0a09eb932e7ccddec
action codeberg.org ISSOtm gb-starter-kit 2025-11-19 74b647d62ff74b40d2b52e585cbebe148463212e action codeberg.org ISSOtm gb-starter-kit 74b647d62ff74b40d2b52e585cbebe148463212e