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
c0c51693
Commit
c0c51693
authored
Aug 06, 2013
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add long-file-name branch to test repo
parent
2984f319
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
4 deletions
+6
-4
tests-clar/refs/list.c
+2
-2
tests-clar/repo/iterator.c
+2
-1
tests-clar/resources/testrepo/.gitted/objects/6b/377958d8c6a4906e8573b53672a1a23a4e8ce6
+0
-0
tests-clar/resources/testrepo/.gitted/objects/6b/9b767af9992b4abad5e24ffb1ba2d688ca602e
+0
-0
tests-clar/resources/testrepo/.gitted/objects/7b/2417a23b63e1fdde88c80e14b33247c6e5785a
+0
-0
tests-clar/resources/testrepo/.gitted/refs/heads/long-file-name
+1
-0
tests-clar/revwalk/basic.c
+1
-1
No files found.
tests-clar/refs/list.c
View file @
c0c51693
...
...
@@ -36,7 +36,7 @@ void test_refs_list__all(void)
/* We have exactly 12 refs in total if we include the packed ones:
* there is a reference that exists both in the packfile and as
* loose, but we only list it once */
cl_assert_equal_i
((
int
)
ref_list
.
count
,
1
3
);
cl_assert_equal_i
((
int
)
ref_list
.
count
,
1
4
);
git_strarray_free
(
&
ref_list
);
}
...
...
@@ -51,7 +51,7 @@ void test_refs_list__do_not_retrieve_references_which_name_end_with_a_lock_exten
"144344043ba4d4a405da03de3844aa829ae8be0e
\n
"
);
cl_git_pass
(
git_reference_list
(
&
ref_list
,
g_repo
));
cl_assert_equal_i
((
int
)
ref_list
.
count
,
1
3
);
cl_assert_equal_i
((
int
)
ref_list
.
count
,
1
4
);
git_strarray_free
(
&
ref_list
);
}
tests-clar/repo/iterator.c
View file @
c0c51693
...
...
@@ -906,6 +906,7 @@ void test_repo_iterator__fs2(void)
static
const
char
*
expect_base
[]
=
{
"heads/br2"
,
"heads/dir"
,
"heads/long-file-name"
,
"heads/master"
,
"heads/packed-test"
,
"heads/subtrees"
,
...
...
@@ -922,6 +923,6 @@ void test_repo_iterator__fs2(void)
cl_git_pass
(
git_iterator_for_filesystem
(
&
i
,
"testrepo/.git/refs"
,
0
,
NULL
,
NULL
));
expect_iterator_items
(
i
,
1
1
,
expect_base
,
11
,
expect_base
);
expect_iterator_items
(
i
,
1
2
,
expect_base
,
12
,
expect_base
);
git_iterator_free
(
i
);
}
tests-clar/resources/testrepo/.gitted/objects/6b/377958d8c6a4906e8573b53672a1a23a4e8ce6
0 → 100644
View file @
c0c51693
File added
tests-clar/resources/testrepo/.gitted/objects/6b/9b767af9992b4abad5e24ffb1ba2d688ca602e
0 → 100644
View file @
c0c51693
File added
tests-clar/resources/testrepo/.gitted/objects/7b/2417a23b63e1fdde88c80e14b33247c6e5785a
0 → 100644
View file @
c0c51693
File added
tests-clar/resources/testrepo/.gitted/refs/heads/long-file-name
0 → 100644
View file @
c0c51693
6b377958d8c6a4906e8573b53672a1a23a4e8ce6
tests-clar/revwalk/basic.c
View file @
c0c51693
...
...
@@ -177,7 +177,7 @@ void test_revwalk_basic__glob_heads_with_invalid(void)
/* walking */
;
/* git log --branches --oneline | wc -l => 16 */
cl_assert_equal_i
(
1
6
,
i
);
cl_assert_equal_i
(
1
7
,
i
);
}
void
test_revwalk_basic__push_head
(
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