Commit fc6ac074 by Vicent Marti

Merge pull request #2713 from libgit2/jamill/push_fetch_first

Update message for error during push
parents fd10b110 a03f6caf
...@@ -333,7 +333,8 @@ static int revwalk(git_vector *commits, git_push *push) ...@@ -333,7 +333,8 @@ static int revwalk(git_vector *commits, git_push *push)
continue; continue;
if (!git_odb_exists(push->repo->_odb, &spec->roid)) { 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; error = GIT_ENONFASTFORWARD;
goto on_error; goto on_error;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment