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
4376f7f6
Commit
4376f7f6
authored
Mar 06, 2012
by
Carlos Martín Nieto
Committed by
Vicent Martí
Apr 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error-handling: remote, transport
parent
d4d648b0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
include/git2/errors.h
+2
-1
src/remote.c
+0
-0
src/transport.c
+4
-4
No files found.
include/git2/errors.h
View file @
4376f7f6
...
...
@@ -131,7 +131,8 @@ typedef enum {
GITERR_REGEX
,
GITERR_ODB
,
GITERR_INDEX
,
GITERR_OBJECT
GITERR_OBJECT
,
GITERR_NET
,
}
git_error_class
;
/**
...
...
src/remote.c
View file @
4376f7f6
This diff is collapsed.
Click to expand it.
src/transport.c
View file @
4376f7f6
...
...
@@ -46,7 +46,8 @@ static git_transport_cb transport_find_fn(const char *url)
int
git_transport_dummy
(
git_transport
**
transport
)
{
GIT_UNUSED
(
transport
);
return
git__throw
(
GIT_ENOTIMPLEMENTED
,
"This protocol isn't implemented. Sorry"
);
giterr_set
(
GITERR_NET
,
"This transport isn't implemented. Sorry"
);
return
-
1
;
}
int
git_transport_new
(
git_transport
**
out
,
const
char
*
url
)
...
...
@@ -66,11 +67,10 @@ int git_transport_new(git_transport **out, const char *url)
error
=
fn
(
&
transport
);
if
(
error
<
GIT_SUCCESS
)
return
git__rethrow
(
error
,
"Failed to create new transport"
)
;
return
error
;
transport
->
url
=
git__strdup
(
url
);
if
(
transport
->
url
==
NULL
)
return
GIT_ENOMEM
;
GITERR_CHECK_ALLOC
(
transport
->
url
);
*
out
=
transport
;
...
...
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