diff options
Diffstat (limited to 'core/git-access.c')
-rw-r--r-- | core/git-access.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/git-access.c b/core/git-access.c index ac4ac80af..5aca509db 100644 --- a/core/git-access.c +++ b/core/git-access.c @@ -648,6 +648,11 @@ static int repository_create_cb(git_repository **out, const char *path, int bare git_config *conf; int ret = git_repository_init(out, path, bare); + if (ret != 0) { + if (verbose) + fprintf(stderr, "Initializing git repository failed\n"); + return ret; + } git_repository_config(&conf, *out); if (getProxyString(&proxy_string)) { |