Skip to content

Commit 46972f2

Browse files
committed
Auto merge of #2051 - bruceadams:absolute-file-url, r=smarnach
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
2 parents 737bc79 + 6105bea commit 46972f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.env.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export DATABASE_URL=
66
# If you are running a mirror of crates.io, uncomment this line.
77
# export MIRROR=1
88

9-
# Key to sign and encrypt cookies with. Must be at least 32 bytes. Change this
9+
# Key to sign and encrypt cookies with. Must be at least 32 bytes. Change this
1010
# to a long, random string for production.
1111
export SESSION_KEY=badkeyabcdefghijklmnopqrstuvwxyzabcdef
1212

@@ -28,7 +28,7 @@ export TEST_DATABASE_URL=
2828
# Remote and local locations of the registry index. You can leave these to
2929
# use a `tmp` subdirectory of the working directory, which is what the
3030
# script in `./script/init-local-index.sh` will set up for you.
31-
export GIT_REPO_URL=file://./tmp/index-bare
31+
export GIT_REPO_URL=file://$PWD/tmp/index-bare
3232
export GIT_REPO_CHECKOUT=./tmp/index-co
3333

3434
# Credentials for talking to github. You can leave these blank if you're

0 commit comments

Comments
 (0)