]> git.proxmox.com Git - libgit2.git/commitdiff
Rev-parse chaining: adding the longest chain
authorBen Straub <bstraub@github.com>
Tue, 1 May 2012 21:34:05 +0000 (14:34 -0700)
committerBen Straub <bstraub@github.com>
Fri, 11 May 2012 18:30:46 +0000 (11:30 -0700)
in the test repo.

tests-clar/refs/revparse.c

index d8013abbdbb473fa0d3204d39dad97a22cf80b5a..f302e2c534caf8ff9fd3dd5528335be8b4ebdfb4 100644 (file)
@@ -129,6 +129,8 @@ void test_refs_revparse__chaining(void)
    oid_str_cmp(g_obj, "c47800c7266a2be04c571c04d5a6614691ea99bd");
    cl_git_pass(git_revparse_single(&g_obj, g_repo, "master^1^2~1"));
    oid_str_cmp(g_obj, "5b5b025afb0b4c913b4c338a42934a3863bf3644");
+   cl_git_pass(git_revparse_single(&g_obj, g_repo, "master^1^1^1^1^1"));
+   oid_str_cmp(g_obj, "8496071c1b46c854b31185ea97743be6a8774479");
 }
 
 void test_refs_revparse__reflog(void)