Remove unused CACHE_DIR in init_repo.

This was used long ago in Travis/Appveyor, but is no longer used.
This commit is contained in:
Eric Huss
2022-06-23 13:55:08 -07:00
parent 43347397f7
commit 0143552b2c
2 changed files with 1 additions and 18 deletions
-10
View File
@@ -8,22 +8,12 @@ ci_dir=$(cd $(dirname $0) && pwd)
. "$ci_dir/shared.sh"
REPO_DIR="$1"
CACHE_DIR="$2"
cache_src_dir="$CACHE_DIR/src"
if [ ! -d "$REPO_DIR" -o ! -d "$REPO_DIR/.git" ]; then
echo "Error: $REPO_DIR does not exist or is not a git repo"
exit 1
fi
cd $REPO_DIR
if [ ! -d "$CACHE_DIR" ]; then
echo "Error: $CACHE_DIR does not exist or is not an absolute path"
exit 1
fi
rm -rf "$CACHE_DIR"
mkdir "$CACHE_DIR"
# On the beta channel we'll be automatically calculating the prerelease version
# via the git history, so unshallow our shallow clone from CI.
+1 -8
View File
@@ -7,11 +7,4 @@ IFS=$'\n\t'
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
if isWindows; then
path="/c/cache/rustsrc"
else
path="${HOME}/rustsrc"
fi
mkdir -p "${path}"
"$(cd "$(dirname "$0")" && pwd)/../init_repo.sh" . "${path}"
"$(cd "$(dirname "$0")" && pwd)/../init_repo.sh" .