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
301dc26a
Commit
301dc26a
authored
Jun 20, 2016
by
Sim Domingo
Committed by
Edward Thomson
Mar 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix error when including a missing config file relative to the home directory
parent
047fe29c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/config_file.c
+10
-2
No files found.
src/config_file.c
View file @
301dc26a
...
...
@@ -1254,8 +1254,16 @@ static int strip_comments(char *line, int in_quotes)
static
int
included_path
(
git_buf
*
out
,
const
char
*
dir
,
const
char
*
path
)
{
/* From the user's home */
if
(
path
[
0
]
==
'~'
&&
path
[
1
]
==
'/'
)
return
git_sysdir_find_global_file
(
out
,
&
path
[
1
]);
int
result
;
if
(
path
[
0
]
==
'~'
&&
path
[
1
]
==
'/'
)
{
result
=
git_sysdir_find_global_file
(
out
,
&
path
[
1
]);
if
(
result
==
GIT_ENOTFOUND
)
{
git_buf_sets
(
out
,
&
path
[
1
]);
return
0
;
}
return
result
;
}
return
git_path_join_unrooted
(
out
,
path
,
dir
,
NULL
);
}
...
...
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