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
8f2a3d62
Commit
8f2a3d62
authored
Nov 18, 2013
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings
parent
8ea7472e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
src/remote.c
+3
-3
src/remote.h
+2
-2
tests/online/clone.c
+2
-0
No files found.
src/remote.c
View file @
8f2a3d62
...
...
@@ -97,7 +97,7 @@ static int get_check_cert(int *out, git_repository *repo)
* most specific to least specific. */
/* GIT_SSL_NO_VERIFY environment variable */
if
(
val
=
getenv
(
"GIT_SSL_NO_VERIFY"
)
)
if
(
(
val
=
getenv
(
"GIT_SSL_NO_VERIFY"
))
!=
NULL
)
return
git_config_parse_bool
(
out
,
val
);
/* http.sslVerify config setting */
...
...
@@ -1494,12 +1494,12 @@ int git_remote_rename(
int
git_remote_update_fetchhead
(
git_remote
*
remote
)
{
return
remote
->
update_fetchhead
;
return
(
remote
->
update_fetchhead
!=
0
)
;
}
void
git_remote_set_update_fetchhead
(
git_remote
*
remote
,
int
value
)
{
remote
->
update_fetchhead
=
value
;
remote
->
update_fetchhead
=
(
value
!=
0
)
;
}
int
git_remote_is_valid_name
(
...
...
src/remote.h
View file @
8f2a3d62
...
...
@@ -28,8 +28,8 @@ struct git_remote {
git_transfer_progress
stats
;
unsigned
int
need_pack
;
git_remote_autotag_option_t
download_tags
;
unsigned
int
check_cert
;
unsigned
int
update_fetchhead
;
int
check_cert
;
int
update_fetchhead
;
};
const
char
*
git_remote__urlfordirection
(
struct
git_remote
*
remote
,
int
direction
);
...
...
tests/online/clone.c
View file @
8f2a3d62
...
...
@@ -190,6 +190,8 @@ static int cred_failure_cb(
unsigned
int
allowed_types
,
void
*
data
)
{
GIT_UNUSED
(
cred
);
GIT_UNUSED
(
url
);
GIT_UNUSED
(
username_from_url
);
GIT_UNUSED
(
allowed_types
);
GIT_UNUSED
(
data
);
return
-
1
;
}
...
...
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