Skip to content

Commit 0143552

Browse files
committed
Remove unused CACHE_DIR in init_repo.
This was used long ago in Travis/Appveyor, but is no longer used.
1 parent 4334739 commit 0143552

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

src/ci/init_repo.sh

-10
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,12 @@ ci_dir=$(cd $(dirname $0) && pwd)
88
. "$ci_dir/shared.sh"
99

1010
REPO_DIR="$1"
11-
CACHE_DIR="$2"
12-
13-
cache_src_dir="$CACHE_DIR/src"
1411

1512
if [ ! -d "$REPO_DIR" -o ! -d "$REPO_DIR/.git" ]; then
1613
echo "Error: $REPO_DIR does not exist or is not a git repo"
1714
exit 1
1815
fi
1916
cd $REPO_DIR
20-
if [ ! -d "$CACHE_DIR" ]; then
21-
echo "Error: $CACHE_DIR does not exist or is not an absolute path"
22-
exit 1
23-
fi
24-
25-
rm -rf "$CACHE_DIR"
26-
mkdir "$CACHE_DIR"
2717

2818
# On the beta channel we'll be automatically calculating the prerelease version
2919
# via the git history, so unshallow our shallow clone from CI.

src/ci/scripts/checkout-submodules.sh

+1-8
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,4 @@ IFS=$'\n\t'
77

88
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
99

10-
if isWindows; then
11-
path="/c/cache/rustsrc"
12-
else
13-
path="${HOME}/rustsrc"
14-
fi
15-
16-
mkdir -p "${path}"
17-
"$(cd "$(dirname "$0")" && pwd)/../init_repo.sh" . "${path}"
10+
"$(cd "$(dirname "$0")" && pwd)/../init_repo.sh" .

0 commit comments

Comments
 (0)