summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <vicent@github.com>2014-11-20 13:13:46 +0100
committerVicent Marti <vicent@github.com>2014-11-20 13:13:46 +0100
commitfc6ac074ee7ea945819e0a1d6f65ba160ba403d7 (patch)
treeca4c8859c0bfc88237c7e2631215f9ef8b38fd81
parentfd10b110deb3c7cc5444b52b0c7fc8fe7f3e295c (diff)
parenta03f6caf5c97a5ef8a9ec89c6f81662c12460bb1 (diff)
downloadlibgit2-fc6ac074ee7ea945819e0a1d6f65ba160ba403d7.tar.gz
Merge pull request #2713 from libgit2/jamill/push_fetch_first
Update message for error during push
-rw-r--r--src/push.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/push.c b/src/push.c
index 88cd4cbaa..6671da465 100644
--- a/src/push.c
+++ b/src/push.c
@@ -333,7 +333,8 @@ static int revwalk(git_vector *commits, git_push *push)
continue;
if (!git_odb_exists(push->repo->_odb, &spec->roid)) {
- giterr_set(GITERR_REFERENCE, "Cannot push missing reference");
+ giterr_set(GITERR_REFERENCE,
+ "Cannot push because a reference that you are trying to update on the remote contains commits that are not present locally.");
error = GIT_ENONFASTFORWARD;
goto on_error;
}