diff options
Diffstat (limited to 'git-access.c')
-rw-r--r-- | git-access.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-access.c b/git-access.c index 2d914ebfe..3a99d591c 100644 --- a/git-access.c +++ b/git-access.c @@ -568,6 +568,8 @@ struct git_repository *is_git_repository(const char *filename, const char **bran free(branch); return dummy_git_repository; } + if (remote) + *remote = NULL; *branchp = branch; return repo; } |