Set more exact repository path if when `base_dir` is different from `repo_dir`.

Cannot get `publushd_by` now if when `base_dir` is different from `repo_dir`.
It fix this issue.