Skip to content

Commit 68b01d6

Browse files
committed
Merge pull request #66 from huonw/init-script
Use `file://` and an absolute path in init-local-index.
2 parents 6de5334 + 2ee930f commit 68b01d6

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)