mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 13:52:17 +00:00
Provide better errors for push on non-bare local remotes
This commit is contained in:
parent
e98535923b
commit
f42d546c63
@ -361,7 +361,8 @@ static int local_push(
|
|||||||
non-bare repo push support would require checking configs to see if
|
non-bare repo push support would require checking configs to see if
|
||||||
we should override the default 'don't let this happen' behavior */
|
we should override the default 'don't let this happen' behavior */
|
||||||
if (!remote_repo->is_bare) {
|
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;
|
goto on_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user