diff --git a/src/push.c b/src/push.c index be5ec1c0e..8a50fb483 100644 --- a/src/push.c +++ b/src/push.c @@ -360,7 +360,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; }