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
824cf80f
Commit
824cf80f
authored
Jun 14, 2013
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1652 from yorah/fix/build-warnings
Fix/build warnings
parents
4878ea45
519072c9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
src/fileops.c
+1
-1
tests-clar/diff/rename.c
+2
-0
No files found.
src/fileops.c
View file @
824cf80f
...
@@ -320,7 +320,7 @@ int git_futils_mkdir(
...
@@ -320,7 +320,7 @@ int git_futils_mkdir(
min_root_len
=
git_path_root
(
make_path
.
ptr
);
min_root_len
=
git_path_root
(
make_path
.
ptr
);
if
(
root
<
min_root_len
)
if
(
root
<
min_root_len
)
root
=
min_root_len
;
root
=
min_root_len
;
while
(
make_path
.
ptr
[
root
]
==
'/'
)
while
(
root
>=
0
&&
make_path
.
ptr
[
root
]
==
'/'
)
++
root
;
++
root
;
/* clip root to make_path length */
/* clip root to make_path length */
...
...
tests-clar/diff/rename.c
View file @
824cf80f
...
@@ -825,6 +825,8 @@ int test_names_expected(const git_diff_delta *delta, float progress, void *p)
...
@@ -825,6 +825,8 @@ int test_names_expected(const git_diff_delta *delta, float progress, void *p)
{
{
struct
rename_expected
*
expected
=
p
;
struct
rename_expected
*
expected
=
p
;
GIT_UNUSED
(
progress
);
cl_assert
(
expected
->
idx
<
expected
->
len
);
cl_assert
(
expected
->
idx
<
expected
->
len
);
cl_assert_equal_i
(
delta
->
status
,
GIT_DELTA_RENAMED
);
cl_assert_equal_i
(
delta
->
status
,
GIT_DELTA_RENAMED
);
...
...
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