Skip to content

Commit 2ee930f

Browse files
committed
Use file:// and an absolute path in init-local-index.
This works for me, unlike no `file://` and/or a relative path.
1 parent 4282a4f commit 2ee930f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

script/init-local-index.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ cat > config.json <<-EOF
2424
EOF
2525
git add config.json
2626
git commit -qm 'Initial commit'
27-
git remote add origin ../index-bare
27+
git remote add origin file://`pwd`/../index-bare
2828
git push -q origin master -u > /dev/null
2929
cd ../..
3030
touch tmp/index-co/.git/git-daemon-export-ok
@@ -37,4 +37,3 @@ Please add the following to your HOME/.cargo/config:
3737
3838
You will also need to generate a token from in the app itself
3939
EOF
40-

0 commit comments

Comments
 (0)