Fix the `resync` command, as the `sync()` was actually triggered before we cleared the `repository_dir` info. Fixes #4204.
Authored by: cboos 2006-11-24
Parent: [r4336]
Child: [r4338]