Commit d18209ee by Carlos Martín Nieto

revwalk: add a test for pushing all references

This used to be broken, let's make sure we don't break this use-case.
parent af817202
......@@ -271,3 +271,22 @@ void test_revwalk_basic__push_mixed(void)
/* git rev-list --count --glob=tags #=> 9 */
cl_assert_equal_i(9, i);
}
void test_revwalk_basic__push_all(void)
{
git_oid oid;
int i = 0;
revwalk_basic_setup_walk(NULL);
git_revwalk_reset(_walk);
git_revwalk_sorting(_walk, 0);
cl_git_pass(git_revwalk_push_glob(_walk, "*"));
while (git_revwalk_next(&oid, _walk) == 0) {
i++;
}
/* git rev-list --count --all #=> 15 */
cl_assert_equal_i(15, i);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment