Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc6ac07

Browse files
author
Vicent Marti
committed
Merge pull request libgit2#2713 from libgit2/jamill/push_fetch_first
Update message for error during push
2 parents fd10b11 + a03f6ca commit fc6ac07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/push.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@ static int revwalk(git_vector *commits, git_push *push)
333333
continue;
334334

335335
if (!git_odb_exists(push->repo->_odb, &spec->roid)) {
336-
giterr_set(GITERR_REFERENCE, "Cannot push missing reference");
336+
giterr_set(GITERR_REFERENCE,
337+
"Cannot push because a reference that you are trying to update on the remote contains commits that are not present locally.");
337338
error = GIT_ENONFASTFORWARD;
338339
goto on_error;
339340
}

0 commit comments

Comments
 (0)