Set-up git_dir before using it...