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
ac9b5127
Commit
ac9b5127
authored
Sep 04, 2015
by
Matt Burke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pull extra_http_headers from the git_remote
parent
6af6e690
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
src/remote.c
+2
-0
src/remote.h
+1
-0
src/transports/http.c
+1
-0
No files found.
src/remote.c
View file @
ac9b5127
...
@@ -1643,6 +1643,8 @@ void git_remote_free(git_remote *remote)
...
@@ -1643,6 +1643,8 @@ 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__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
);
...
...
src/remote.h
View file @
ac9b5127
...
@@ -32,6 +32,7 @@ struct git_remote {
...
@@ -32,6 +32,7 @@ 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 @
ac9b5127
...
@@ -974,6 +974,7 @@ static int http_action(
...
@@ -974,6 +974,7 @@ 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