From: Oleg Broytman Date: Sat, 15 Apr 2017 23:17:41 +0000 (+0300) Subject: Fix publish2web: put the real web directory to locate-all.list X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=83727d11cd79db706eb3029194d735031f8ac3c3 Fix publish2web: put the real web directory to locate-all.list `pwd` was ~/tmp there. --- diff --git a/publish2web b/publish2web index eb7cf0a..9a74848 100755 --- a/publish2web +++ b/publish2web @@ -18,7 +18,6 @@ dest_dir="`basename \"$source_dir\"`".git && git clone --bare --config core.sharedRepository=0644 "$source_dir" "$dest_dir" && cd "$dest_dir" && -pwd >> "`dirname \"$0\"`"/locate-all.list && git gc --aggressive && git repack -a -d -f --depth=20 --window=250 && git fsck --strict && @@ -43,6 +42,7 @@ fi && cd "$HOME"/tmp && mv "$dest_dir" "$HOME"/Internet/WWW/htdocs/git.phdru.name/"$directories" && +echo "$HOME"/Internet/WWW/htdocs/git.phdru.name/"$directories/$dest_dir" >> "`dirname \"$0\"`"/locate-all.list && umask 077 && cd "$source_dir" &&