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
4cc355c9
Commit
4cc355c9
authored
Sep 14, 2015
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clone::nonetwork: don't use fixed size buffer
parent
b0885675
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
tests/clone/nonetwork.c
+6
-3
No files found.
tests/clone/nonetwork.c
View file @
4cc355c9
...
...
@@ -297,16 +297,19 @@ static void assert_correct_reflog(const char *name)
{
git_reflog
*
log
;
const
git_reflog_entry
*
entry
;
char
expected_log_message
[
128
]
=
{
0
}
;
git_buf
expected_message
=
GIT_BUF_INIT
;
sprintf
(
expected_log_message
,
"clone: from %s"
,
cl_git_fixture_url
(
"testrepo.git"
));
git_buf_printf
(
&
expected_message
,
"clone: from %s"
,
cl_git_fixture_url
(
"testrepo.git"
));
cl_git_pass
(
git_reflog_read
(
&
log
,
g_repo
,
name
));
cl_assert_equal_i
(
1
,
git_reflog_entrycount
(
log
));
entry
=
git_reflog_entry_byindex
(
log
,
0
);
cl_assert_equal_s
(
expected_
log_message
,
git_reflog_entry_message
(
entry
));
cl_assert_equal_s
(
expected_
message
.
ptr
,
git_reflog_entry_message
(
entry
));
git_reflog_free
(
log
);
git_buf_free
(
&
expected_message
);
}
void
test_clone_nonetwork__clone_updates_reflog_properly
(
void
)
...
...
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