Skip to content

Commit 1d7c20c

Browse files
committed
Remove duplicated fetch_github_commit_archive in CI scripts.
The code using `fetch_github_commit_archive` was removed in rust-lang#72937.
1 parent 0143552 commit 1d7c20c

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/ci/docker/host-x86_64/dist-various-2/shared.sh

-12
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,3 @@ function retry {
3333
}
3434
done
3535
}
36-
37-
# Copied from ../../init_repo.sh
38-
function fetch_github_commit_archive {
39-
local module=$1
40-
local cached="download-${module//\//-}.tar.gz"
41-
retry sh -c "rm -f $cached && \
42-
curl -f -sSL -o $cached $2"
43-
mkdir $module
44-
touch "$module/.git"
45-
tar -C $module --strip-components=1 -xf $cached
46-
rm $cached
47-
}

src/ci/init_repo.sh

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ if [ "$(releaseChannel)" = "beta" ]; then
2121
git fetch origin --unshallow beta master
2222
fi
2323

24-
# Duplicated in docker/dist-various-2/shared.sh
2524
function fetch_github_commit_archive {
2625
local module=$1
2726
local cached="download-${module//\//-}.tar.gz"

0 commit comments

Comments
 (0)