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
24f5b4e1
Commit
24f5b4e1
authored
Sep 08, 2015
by
Matt Burke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop extra_http_headers from git_remote
parent
59d6128e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
18 deletions
+0
-18
include/git2/remote.h
+0
-3
src/netops.h
+0
-1
src/remote.c
+0
-12
src/remote.h
+0
-1
src/transports/http.c
+0
-1
No files found.
include/git2/remote.h
View file @
24f5b4e1
...
@@ -230,9 +230,6 @@ GIT_EXTERN(size_t) git_remote_refspec_count(const git_remote *remote);
...
@@ -230,9 +230,6 @@ GIT_EXTERN(size_t) git_remote_refspec_count(const git_remote *remote);
*/
*/
GIT_EXTERN
(
const
git_refspec
*
)
git_remote_get_refspec
(
const
git_remote
*
remote
,
size_t
n
);
GIT_EXTERN
(
const
git_refspec
*
)
git_remote_get_refspec
(
const
git_remote
*
remote
,
size_t
n
);
GIT_EXTERN
(
int
)
git_remote_extra_http_headers
(
const
git_remote
*
remote
,
git_strarray
*
extra_http_headers
);
GIT_EXTERN
(
int
)
git_remote_set_extra_http_headers
(
git_remote
*
remote
,
const
git_strarray
extra_http_headers
);
/**
/**
* Open a connection to a remote
* Open a connection to a remote
*
*
...
...
src/netops.h
View file @
24f5b4e1
...
@@ -70,7 +70,6 @@ typedef struct gitno_connection_data {
...
@@ -70,7 +70,6 @@ typedef struct gitno_connection_data {
char
*
user
;
char
*
user
;
char
*
pass
;
char
*
pass
;
bool
use_ssl
;
bool
use_ssl
;
git_strarray
*
extra_headers
;
}
gitno_connection_data
;
}
gitno_connection_data
;
/*
/*
...
...
src/remote.c
View file @
24f5b4e1
...
@@ -1643,8 +1643,6 @@ void git_remote_free(git_remote *remote)
...
@@ -1643,8 +1643,6 @@ void git_remote_free(git_remote *remote)
free_refspecs
(
&
remote
->
passive_refspecs
);
free_refspecs
(
&
remote
->
passive_refspecs
);
git_vector_free
(
&
remote
->
passive_refspecs
);
git_vector_free
(
&
remote
->
passive_refspecs
);
git_strarray_free
(
&
remote
->
extra_http_headers
);
git_push_free
(
remote
->
push
);
git_push_free
(
remote
->
push
);
git__free
(
remote
->
url
);
git__free
(
remote
->
url
);
git__free
(
remote
->
pushurl
);
git__free
(
remote
->
pushurl
);
...
@@ -2154,16 +2152,6 @@ size_t git_remote_refspec_count(const git_remote *remote)
...
@@ -2154,16 +2152,6 @@ size_t git_remote_refspec_count(const git_remote *remote)
return
remote
->
refspecs
.
length
;
return
remote
->
refspecs
.
length
;
}
}
int
git_remote_extra_http_headers
(
const
git_remote
*
remote
,
git_strarray
*
extra_http_headers
)
{
return
git_strarray_copy
(
extra_http_headers
,
&
remote
->
extra_http_headers
);
}
int
git_remote_set_extra_http_headers
(
git_remote
*
remote
,
const
git_strarray
extra_http_headers
)
{
return
git_strarray_copy
(
&
remote
->
extra_http_headers
,
&
extra_http_headers
);
}
const
git_refspec
*
git_remote_get_refspec
(
const
git_remote
*
remote
,
size_t
n
)
const
git_refspec
*
git_remote_get_refspec
(
const
git_remote
*
remote
,
size_t
n
)
{
{
return
git_vector_get
(
&
remote
->
refspecs
,
n
);
return
git_vector_get
(
&
remote
->
refspecs
,
n
);
...
...
src/remote.h
View file @
24f5b4e1
...
@@ -32,7 +32,6 @@ struct git_remote {
...
@@ -32,7 +32,6 @@ struct git_remote {
git_remote_autotag_option_t
download_tags
;
git_remote_autotag_option_t
download_tags
;
int
prune_refs
;
int
prune_refs
;
int
passed_refspecs
;
int
passed_refspecs
;
git_strarray
extra_http_headers
;
};
};
const
char
*
git_remote__urlfordirection
(
struct
git_remote
*
remote
,
int
direction
);
const
char
*
git_remote__urlfordirection
(
struct
git_remote
*
remote
,
int
direction
);
...
...
src/transports/http.c
View file @
24f5b4e1
...
@@ -974,7 +974,6 @@ static int http_action(
...
@@ -974,7 +974,6 @@ static int http_action(
if
((
!
t
->
connection_data
.
host
||
!
t
->
connection_data
.
port
||
!
t
->
connection_data
.
path
)
&&
if
((
!
t
->
connection_data
.
host
||
!
t
->
connection_data
.
port
||
!
t
->
connection_data
.
path
)
&&
(
ret
=
gitno_connection_data_from_url
(
&
t
->
connection_data
,
url
,
NULL
))
<
0
)
(
ret
=
gitno_connection_data_from_url
(
&
t
->
connection_data
,
url
,
NULL
))
<
0
)
return
ret
;
return
ret
;
t
->
connection_data
.
extra_headers
=
&
t
->
owner
->
owner
->
extra_http_headers
;
if
((
ret
=
http_connect
(
t
))
<
0
)
if
((
ret
=
http_connect
(
t
))
<
0
)
return
ret
;
return
ret
;
...
...
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