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
1544bc31
Commit
1544bc31
authored
Nov 02, 2010
by
Dave Borowitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only require an index for non-bare repos.
parent
6fd195d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/repository.c
+6
-6
No files found.
src/repository.c
View file @
1544bc31
...
...
@@ -91,12 +91,6 @@ static int parse_repository_folders(git_repository *repo, const char *repository
return
GIT_ERROR
;
repo
->
path_odb
=
git__strdup
(
path_aux
);
/* index file */
strcpy
(
path_aux
+
path_len
,
"index"
);
if
(
gitfo_exists
(
path_aux
)
<
0
)
return
GIT_ERROR
;
repo
->
path_index
=
git__strdup
(
path_aux
);
/* HEAD file */
strcpy
(
path_aux
+
path_len
,
"HEAD"
);
if
(
gitfo_exists
(
path_aux
)
<
0
)
...
...
@@ -112,6 +106,12 @@ static int parse_repository_folders(git_repository *repo, const char *repository
path_aux
[
i
+
1
]
=
0
;
repo
->
path_workdir
=
git__strdup
(
path_aux
);
/* index file */
strcpy
(
path_aux
+
path_len
,
"index"
);
if
(
gitfo_exists
(
path_aux
)
<
0
)
return
GIT_ERROR
;
repo
->
path_index
=
git__strdup
(
path_aux
);
}
else
{
repo
->
is_bare
=
1
;
repo
->
path_workdir
=
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