path: convert strbuf_git_common_path to take a 'struct repository'