diff options
Diffstat (limited to 'load-git.c')
-rw-r--r-- | load-git.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/load-git.c b/load-git.c index c861799b4..4040c1677 100644 --- a/load-git.c +++ b/load-git.c @@ -1243,7 +1243,11 @@ static int do_git_load(git_repository *repo, const char *branch) */ int git_load_dives(struct git_repository *repo, const char *branch) { - int ret = do_git_load(repo, branch); + int ret; + + if (repo == dummy_git_repository) + return report_error("Unable to open git repository at '%s'", branch); + ret = do_git_load(repo, branch); git_repository_free(repo); free((void *)branch); finish_active_dive(); |