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
f627ba6c
Unverified
Commit
f627ba6c
authored
Aug 02, 2019
by
Edward Thomson
Committed by
GitHub
Aug 02, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5197 from pks-t/pks/remote-ifdeffed-block
remote: remove unused block of code
parents
24c491ed
e23c0b18
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
src/remote.c
+0
-29
No files found.
src/remote.c
View file @
f627ba6c
...
@@ -136,35 +136,6 @@ cleanup:
...
@@ -136,35 +136,6 @@ cleanup:
return
0
;
return
0
;
}
}
#if 0
/* We could export this as a helper */
static int get_check_cert(int *out, git_repository *repo)
{
git_config *cfg;
const char *val;
int error = 0;
assert(out && repo);
/* By default, we *DO* want to verify the certificate. */
*out = 1;
/* Go through the possible sources for SSL verification settings, from
* most specific to least specific. */
/* GIT_SSL_NO_VERIFY environment variable */
if ((val = p_getenv("GIT_SSL_NO_VERIFY")) != NULL)
return git_config_parse_bool(out, val);
/* http.sslVerify config setting */
if ((error = git_repository_config__weakptr(&cfg, repo)) < 0)
return error;
*out = git_config__get_bool_force(cfg, "http.sslverify", 1);
return 0;
}
#endif
static
int
canonicalize_url
(
git_buf
*
out
,
const
char
*
in
)
static
int
canonicalize_url
(
git_buf
*
out
,
const
char
*
in
)
{
{
if
(
in
==
NULL
||
strlen
(
in
)
==
0
)
{
if
(
in
==
NULL
||
strlen
(
in
)
==
0
)
{
...
...
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