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
2a54c7f4
Commit
2a54c7f4
authored
Sep 04, 2013
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_umask is function name on Windows
parent
abfed59c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tests-clar/repo/init.c
+5
-5
No files found.
tests-clar/repo/init.c
View file @
2a54c7f4
...
@@ -10,16 +10,16 @@ enum repo_mode {
...
@@ -10,16 +10,16 @@ enum repo_mode {
};
};
static
git_repository
*
_repo
=
NULL
;
static
git_repository
*
_repo
=
NULL
;
static
mode_t
_umask
=
0
;
static
mode_t
g
_umask
=
0
;
void
test_repo_init__initialize
(
void
)
void
test_repo_init__initialize
(
void
)
{
{
_repo
=
NULL
;
_repo
=
NULL
;
/* load umask if not already loaded */
/* load umask if not already loaded */
if
(
!
_umask
)
{
if
(
!
g
_umask
)
{
_umask
=
p_umask
(
022
);
g
_umask
=
p_umask
(
022
);
(
void
)
p_umask
(
_umask
);
(
void
)
p_umask
(
g
_umask
);
}
}
}
}
...
@@ -388,7 +388,7 @@ static void assert_hooks_match(
...
@@ -388,7 +388,7 @@ static void assert_hooks_match(
expected_st
.
st_mode
=
expected_st
.
st_mode
=
(
expected_st
.
st_mode
&
~
0777
)
|
(
expected_st
.
st_mode
&
~
0777
)
|
(((
expected_st
.
st_mode
&
0111
)
?
0100777
:
0100666
)
&
~
_umask
);
(((
expected_st
.
st_mode
&
0111
)
?
0100777
:
0100666
)
&
~
g
_umask
);
if
(
!
core_filemode
)
{
if
(
!
core_filemode
)
{
expected_st
.
st_mode
=
expected_st
.
st_mode
&
~
0111
;
expected_st
.
st_mode
=
expected_st
.
st_mode
&
~
0111
;
...
...
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