summaryrefslogtreecommitdiff
path: root/tests-clar
diff options
context:
space:
mode:
authorBen Straub <bstraub@github.com>2012-07-31 19:49:19 -0700
committerBen Straub <bstraub@github.com>2012-07-31 19:49:19 -0700
commit5f4d2f9f6574fd41d9340ef80de0813bde80b76d (patch)
tree1c8e95f2816c8f1024df2b5c177be58bcf9972e8 /tests-clar
parent5280f4e6983555e9ae111a6cb10765c7635e7e12 (diff)
downloadlibgit2-5f4d2f9f6574fd41d9340ef80de0813bde80b76d.tar.gz
Checkout: fix problem with detached HEAD.
Diffstat (limited to 'tests-clar')
-rw-r--r--tests-clar/checkout/checkout.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests-clar/checkout/checkout.c b/tests-clar/checkout/checkout.c
index 3a27fe5c1..af3bae9ef 100644
--- a/tests-clar/checkout/checkout.c
+++ b/tests-clar/checkout/checkout.c
@@ -177,3 +177,8 @@ void test_checkout_checkout__open_flags(void)
cl_git_pass(git_checkout_head(g_repo, &opts, NULL));
test_file_contents("./testrepo/new.txt", "hi\nmy new file\n");
}
+
+void test_checkout_checkout__detached_head(void)
+{
+ /* TODO: write this when git_checkout_commit is implemented. */
+}