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
498b72eb
Commit
498b72eb
authored
May 18, 2012
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #711 from schu/fetch-local-dummy
fetch: set dummy function for local fetch
parents
6ec01e63
a167002f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/transports/local.c
+11
-0
No files found.
src/transports/local.c
View file @
498b72eb
...
@@ -176,6 +176,16 @@ static int local_connect(git_transport *transport, int direction)
...
@@ -176,6 +176,16 @@ static int local_connect(git_transport *transport, int direction)
return
0
;
return
0
;
}
}
static
int
local_negotiate_fetch
(
git_transport
*
transport
,
git_repository
*
repo
,
const
git_vector
*
wants
)
{
GIT_UNUSED
(
transport
);
GIT_UNUSED
(
repo
);
GIT_UNUSED
(
wants
);
giterr_set
(
GITERR_NET
,
"Fetch via local transport isn't implemented. Sorry"
);
return
-
1
;
}
static
int
local_close
(
git_transport
*
transport
)
static
int
local_close
(
git_transport
*
transport
)
{
{
transport_local
*
t
=
(
transport_local
*
)
transport
;
transport_local
*
t
=
(
transport_local
*
)
transport
;
...
@@ -220,6 +230,7 @@ int git_transport_local(git_transport **out)
...
@@ -220,6 +230,7 @@ int git_transport_local(git_transport **out)
t
->
parent
.
connect
=
local_connect
;
t
->
parent
.
connect
=
local_connect
;
t
->
parent
.
ls
=
local_ls
;
t
->
parent
.
ls
=
local_ls
;
t
->
parent
.
negotiate_fetch
=
local_negotiate_fetch
;
t
->
parent
.
close
=
local_close
;
t
->
parent
.
close
=
local_close
;
t
->
parent
.
free
=
local_free
;
t
->
parent
.
free
=
local_free
;
...
...
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