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
f2a60854
Commit
f2a60854
authored
Jun 05, 2011
by
Romain Geissler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Repository: Fixed the path returned by read_gitfile (remove trailing slashes)
parent
8b05e780
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/repository.c
+7
-0
No files found.
src/repository.c
View file @
f2a60854
...
...
@@ -418,6 +418,13 @@ static int read_gitfile(char *path_out, size_t size, const char *file_path, cons
}
error
=
gitfo_prettify_dir_path
(
path_out
,
size
,
data
+
GIT_FILE_CONTENT_PREFIX_LENGTH
,
base_path
);
if
(
error
==
GIT_SUCCESS
)
{
end_offset
=
strlen
(
path_out
);
if
(
end_offset
>
0
&&
path_out
[
end_offset
-
1
]
==
'/'
)
path_out
[
end_offset
-
1
]
=
'\0'
;
}
gitfo_free_buf
(
&
file
);
return
error
;
...
...
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