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
9bf56c7b
Commit
9bf56c7b
authored
Jan 15, 2013
by
Sebastian Bauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't segfault if transport doesn't support push.
Instead, set an more informative error message.
parent
34a4ad46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/push.c
+6
-0
No files found.
src/push.c
View file @
9bf56c7b
...
...
@@ -369,6 +369,12 @@ static int do_push(git_push *push)
int
error
;
git_transport
*
transport
=
push
->
remote
->
transport
;
if
(
!
transport
->
push
)
{
giterr_set
(
GITERR_NET
,
"Remote transport doesn't support push"
);
error
=
-
1
;
goto
on_error
;
}
/*
* A pack-file MUST be sent if either create or update command
* is used, even if the server already has all the necessary
...
...
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