pack-refs: fix git_path() usage.