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
71a8e484
Commit
71a8e484
authored
Jul 05, 2011
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #297 from nulltoken/patch-5
Fix MSVC compilation issue
parents
d830919a
ed72182b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/repository.c
+3
-3
No files found.
src/repository.c
View file @
71a8e484
...
...
@@ -605,7 +605,7 @@ static int repo_init_createhead(git_repository *repo)
return
git_reference_create_symbolic
(
&
head_reference
,
repo
,
GIT_HEAD_FILE
,
GIT_REFS_HEADS_MASTER_FILE
,
0
);
}
static
int
repo_init_structure
(
const
char
*
git_dir
)
static
int
repo_init_structure
(
const
char
*
git_dir
,
int
is_bare
)
{
const
int
mode
=
0755
;
/* or 0777 ? */
int
error
;
...
...
@@ -617,7 +617,7 @@ static int repo_init_structure(const char *git_dir)
#ifdef GIT_WIN32
/* Hides the ".git" directory */
if
(
!
results
->
is_bare
)
{
if
(
!
is_bare
)
{
error
=
p_hide_directory__w32
(
git_dir
);
if
(
error
<
GIT_SUCCESS
)
return
git__rethrow
(
error
,
"Failed to initialize repository structure"
);
...
...
@@ -668,7 +668,7 @@ int git_repository_init(git_repository **repo_out, const char *path, unsigned is
return
repo_init_reinit
(
repository_path
,
is_bare
);
}
error
=
repo_init_structure
(
repository_path
);
error
=
repo_init_structure
(
repository_path
,
is_bare
);
if
(
error
<
GIT_SUCCESS
)
goto
cleanup
;
...
...
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