]> git.phdru.name Git - git-scripts.git/commitdiff
Fix publish2web: put the real web directory to locate-all.list
authorOleg Broytman <phd@phdru.name>
Sat, 15 Apr 2017 23:17:41 +0000 (02:17 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 15 Apr 2017 23:17:41 +0000 (02:17 +0300)
`pwd` was ~/tmp there.

publish2web

index eb7cf0ab915ddacb479b52ba70e977cac0779059..9a748489c959a9edf17bb5201e027a548b0c1c21 100755 (executable)
@@ -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" &&