diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-07 13:28:51 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-13 10:50:38 +0200 |
commit | 81c0fb08bd9185927722ffe0e851119500cb6ced (patch) | |
tree | 0ff17403e68b9555c9aaa58b41301a95d4b71614 | |
parent | c5c5cdb106d012d132475d9156923857f8d302fc (diff) | |
download | libgit2-81c0fb08bd9185927722ffe0e851119500cb6ced.tar.gz |
local: add clarification for non-bare push restriction
-rw-r--r-- | src/transports/local.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/transports/local.c b/src/transports/local.c index 305c71bf0..51e654025 100644 --- a/src/transports/local.c +++ b/src/transports/local.c @@ -398,7 +398,10 @@ static int local_push( /* We don't currently support pushing locally to non-bare repos. Proper 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. + + Note that this is only an issue when pushing to the current branch, + but we forbid all pushes just in case */ if (!remote_repo->is_bare) { error = GIT_EBAREREPO; giterr_set(GITERR_INVALID, "Local push doesn't (yet) support pushing to non-bare repos."); |