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
ad5adacb
Commit
ad5adacb
authored
Oct 21, 2014
by
Alan Rogers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch from @carlosmn to refresh the parent config before snapshotting.
parent
1e2fe921
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
src/config_file.c
+6
-1
No files found.
src/config_file.c
View file @
ad5adacb
...
...
@@ -767,12 +767,17 @@ static int config_readonly_open(git_config_backend *cfg, git_config_level_t leve
{
diskfile_readonly_backend
*
b
=
(
diskfile_readonly_backend
*
)
cfg
;
diskfile_backend
*
src
=
b
->
snapshot_from
;
diskfile_header
*
src_header
=
&
src
->
header
;
refcounted_strmap
*
src_map
;
int
error
;
if
(
!
src_header
->
readonly
&&
(
error
=
config_refresh
(
&
src_header
->
parent
))
<
0
)
return
error
;
/* We're just copying data, don't care about the level */
GIT_UNUSED
(
level
);
src_map
=
refcounted_strmap_take
(
&
src
->
header
);
src_map
=
refcounted_strmap_take
(
src_
header
);
b
->
header
.
values
=
src_map
;
return
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