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
ab3f6099
Commit
ab3f6099
authored
Aug 05, 2018
by
Nelson Elhage
Committed by
Patrick Steinhardt
Oct 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't error on missing section, just continue
(cherry picked from commit
019409be
)
parent
9023f8f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/config_file.c
+4
-4
No files found.
src/config_file.c
View file @
ab3f6099
...
...
@@ -1075,12 +1075,12 @@ static int read_on_variable(
GIT_UNUSED
(
line
);
GIT_UNUSED
(
line_len
);
if
(
!
current_section
)
{
git
err_set
(
GITERR_CONFIG
,
"no section for key: %s"
,
var_name
);
return
-
1
;
if
(
current_section
)
{
git
_buf_puts
(
&
buf
,
current_section
);
git_buf_putc
(
&
buf
,
'.'
)
;
}
git__strtolower
(
var_name
);
git_buf_p
rintf
(
&
buf
,
"%s.%s"
,
current_section
,
var_name
);
git_buf_p
uts
(
&
buf
,
var_name
);
git__free
(
var_name
);
if
(
git_buf_oom
(
&
buf
))
{
...
...
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