Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
fc6ac074
Commit
fc6ac074
authored
Nov 20, 2014
by
Vicent Marti
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2713 from libgit2/jamill/push_fetch_first
Update message for error during push
parents
fd10b110
a03f6caf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/push.c
+2
-1
No files found.
src/push.c
View file @
fc6ac074
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment