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
78a8f68f
Commit
78a8f68f
authored
Jun 06, 2017
by
Patrick Steinhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
path: only set dotgit flags when configs were read
parent
9be4c303
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/path.c
+5
-4
No files found.
src/path.c
View file @
78a8f68f
...
@@ -1708,6 +1708,7 @@ GIT_INLINE(unsigned int) dotgit_flags(
...
@@ -1708,6 +1708,7 @@ GIT_INLINE(unsigned int) dotgit_flags(
unsigned
int
flags
)
unsigned
int
flags
)
{
{
int
protectHFS
=
0
,
protectNTFS
=
0
;
int
protectHFS
=
0
,
protectNTFS
=
0
;
int
error
=
0
;
flags
|=
GIT_PATH_REJECT_DOT_GIT_LITERAL
;
flags
|=
GIT_PATH_REJECT_DOT_GIT_LITERAL
;
...
@@ -1720,13 +1721,13 @@ GIT_INLINE(unsigned int) dotgit_flags(
...
@@ -1720,13 +1721,13 @@ GIT_INLINE(unsigned int) dotgit_flags(
#endif
#endif
if
(
repo
&&
!
protectHFS
)
if
(
repo
&&
!
protectHFS
)
git_repository__cvar
(
&
protectHFS
,
repo
,
GIT_CVAR_PROTECTHFS
);
error
=
git_repository__cvar
(
&
protectHFS
,
repo
,
GIT_CVAR_PROTECTHFS
);
if
(
protectHFS
)
if
(
!
error
&&
protectHFS
)
flags
|=
GIT_PATH_REJECT_DOT_GIT_HFS
;
flags
|=
GIT_PATH_REJECT_DOT_GIT_HFS
;
if
(
repo
&&
!
protectNTFS
)
if
(
repo
&&
!
protectNTFS
)
git_repository__cvar
(
&
protectNTFS
,
repo
,
GIT_CVAR_PROTECTNTFS
);
error
=
git_repository__cvar
(
&
protectNTFS
,
repo
,
GIT_CVAR_PROTECTNTFS
);
if
(
protectNTFS
)
if
(
!
error
&&
protectNTFS
)
flags
|=
GIT_PATH_REJECT_DOT_GIT_NTFS
;
flags
|=
GIT_PATH_REJECT_DOT_GIT_NTFS
;
return
flags
;
return
flags
;
...
...
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