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
df192198
Commit
df192198
authored
Jun 07, 2014
by
Philip Kelley
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2408 from phkelley/win32_test_fixes
Win32 test fixes
parents
716e20b4
daf2a648
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
tests/online/clone.c
+3
-0
tests/submodule/submodule_helpers.c
+2
-2
No files found.
tests/online/clone.c
View file @
df192198
...
@@ -194,6 +194,9 @@ void test_online_clone__clone_mirror(void)
...
@@ -194,6 +194,9 @@ void test_online_clone__clone_mirror(void)
git_remote_free
(
remote
);
git_remote_free
(
remote
);
git_reference_free
(
head
);
git_reference_free
(
head
);
git_buf_free
(
&
path
);
git_buf_free
(
&
path
);
git_repository_free
(
g_repo
);
g_repo
=
NULL
;
cl_fixture_cleanup
(
"./foo.git"
);
cl_fixture_cleanup
(
"./foo.git"
);
}
}
...
...
tests/submodule/submodule_helpers.c
View file @
df192198
...
@@ -19,8 +19,8 @@ void rewrite_gitmodules(const char *workdir)
...
@@ -19,8 +19,8 @@ void rewrite_gitmodules(const char *workdir)
cl_git_pass
(
git_buf_joinpath
(
&
in_f
,
workdir
,
"gitmodules"
));
cl_git_pass
(
git_buf_joinpath
(
&
in_f
,
workdir
,
"gitmodules"
));
cl_git_pass
(
git_buf_joinpath
(
&
out_f
,
workdir
,
".gitmodules"
));
cl_git_pass
(
git_buf_joinpath
(
&
out_f
,
workdir
,
".gitmodules"
));
cl_assert
((
in
=
fopen
(
in_f
.
ptr
,
"r"
))
!=
NULL
);
cl_assert
((
in
=
fopen
(
in_f
.
ptr
,
"r
b
"
))
!=
NULL
);
cl_assert
((
out
=
fopen
(
out_f
.
ptr
,
"w"
))
!=
NULL
);
cl_assert
((
out
=
fopen
(
out_f
.
ptr
,
"w
b
"
))
!=
NULL
);
while
(
fgets
(
line
,
sizeof
(
line
),
in
)
!=
NULL
)
{
while
(
fgets
(
line
,
sizeof
(
line
),
in
)
!=
NULL
)
{
char
*
scan
=
line
;
char
*
scan
=
line
;
...
...
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