Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove stale indexdb when re-cloning srcdir
  • Loading branch information
jmtd committed Jan 8, 2021
1 parent 3269243 commit 0dd1bb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion launch.sh
Expand Up @@ -7,9 +7,13 @@ set -euo pipefail
if ! GIT_DIR=./src/.git git show-ref >/dev/null 2>&1; then
mv src/.ikiwiki dot-ikiwiki
rm -rf src
git clone --shared conf/git/ikiwiki.git src
git clone --quiet --shared conf/git/ikiwiki.git src
mv dot-ikiwiki src/.ikiwiki

# remove indexdb, which caches the stale commit refs.
# See <https://ikiwiki.info/bugs/ikiwiki_explodes_when_git_rewrites_history/>
rm -f src/.ikiwiki/indexdb

# is this needed in other circumstances?
ikiwiki --setup ~/conf/setup --rebuild --wrappers
fi
Expand Down

0 comments on commit 0dd1bb3

Please sign in to comment.