Always save the `repository_dir` if it is not already saved, and not only on `resync` operations. Fixes #4137.
Authored by: cboos 2006-11-12
Parent: [r4251]
Child: [r4253]