summaryrefslogtreecommitdiffstats
path: root/core/git-access.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/git-access.c')
-rw-r--r--core/git-access.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/git-access.c b/core/git-access.c
index 1966ab61d..83a8c6054 100644
--- a/core/git-access.c
+++ b/core/git-access.c
@@ -960,6 +960,8 @@ struct git_repository *is_git_repository(const char *filename, const char **bran
}
if (subsurface_stat(loc, &st) < 0 || !S_ISDIR(st.st_mode)) {
+ if (verbose)
+ fprintf(stderr, "loc %s wasn't found or is not a directory\n", loc);
free(loc);
free(branch);
return dummy_git_repository;