summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transports/local.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transports/local.c b/src/transports/local.c
index 8a75de727..9ebea979c 100644
--- a/src/transports/local.c
+++ b/src/transports/local.c
@@ -361,7 +361,8 @@ static int local_push(
non-bare repo push support would require checking configs to see if
we should override the default 'don't let this happen' behavior */
if (!remote_repo->is_bare) {
- error = -1;
+ error = GIT_EBAREREPO;
+ giterr_set(GITERR_INVALID, "Local push doesn't (yet) support pushing to non-bare repos.");
goto on_error;
}