Sets the working directory of the repository.
If update_gitlink is set to true "core.worktree" will be set in the config if workdir is
not the parent of the .git directory).
| this |
a Repository. |
| workdir |
the working directory. |
| update_gitlink |
create/update gitlink in workdir. |