From 6105bea1ea9fc4874046584b21860bd7dc4aff7a Mon Sep 17 00:00:00 2001 From: Bruce Adams Date: Sun, 22 Dec 2019 13:04:58 -0500 Subject: [PATCH] Use absolute path for GIT_REPO_URL file:// URL file:// URLs do not support relative paths. This change uses $PWD to make an absolute path based on where the user is running Crates on their local machine. This fixes issue #2030 --- .env.sample | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.sample b/.env.sample index e638e6ecb8a..e6f2b5c9132 100644 --- a/.env.sample +++ b/.env.sample @@ -6,7 +6,7 @@ export DATABASE_URL= # If you are running a mirror of crates.io, uncomment this line. # export MIRROR=1 -# Key to sign and encrypt cookies with. Must be at least 32 bytes. Change this +# Key to sign and encrypt cookies with. Must be at least 32 bytes. Change this # to a long, random string for production. export SESSION_KEY=badkeyabcdefghijklmnopqrstuvwxyzabcdef @@ -28,7 +28,7 @@ export TEST_DATABASE_URL= # Remote and local locations of the registry index. You can leave these to # use a `tmp` subdirectory of the working directory, which is what the # script in `./script/init-local-index.sh` will set up for you. -export GIT_REPO_URL=file://./tmp/index-bare +export GIT_REPO_URL=file://$PWD/tmp/index-bare export GIT_REPO_CHECKOUT=./tmp/index-co # Credentials for talking to github. You can leave these blank if you're