summaryrefslogtreecommitdiffstats
path: root/git-access.c
diff options
context:
space:
mode:
Diffstat (limited to 'git-access.c')
-rw-r--r--git-access.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/git-access.c b/git-access.c
index eee066007..d2be2c9d0 100644
--- a/git-access.c
+++ b/git-access.c
@@ -857,9 +857,11 @@ struct git_repository *is_git_repository(const char *filename, const char **bran
return dummy_git_repository;
}
- if (dry_run)
+ if (dry_run) {
+ *branchp = branch;
+ *remote = loc;
return dummy_git_repository;
-
+ }
repo = is_remote_git_repository(loc, branch);
if (repo) {
if (remote)