diff options
author | Ben Straub <bs@github.com> | 2014-02-19 02:05:30 +0400 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2014-02-19 02:05:30 +0400 |
commit | 9bda5fb8c1fa5d69616477f43b511b6f717115ec (patch) | |
tree | 50c4a74d66d1611c1f0104bb00675abb5e910427 /tests/repo/shallow.c | |
parent | e0ebaaa53ea1154a1f392dae463453ac6c428d78 (diff) |
Improve error propagation in shallow call
Diffstat (limited to 'tests/repo/shallow.c')
-rw-r--r-- | tests/repo/shallow.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/repo/shallow.c b/tests/repo/shallow.c index 1cc66ae40..5aeaf2def 100644 --- a/tests/repo/shallow.c +++ b/tests/repo/shallow.c @@ -31,3 +31,9 @@ void test_repo_shallow__shallow_repo(void) cl_assert_equal_i(1, git_repository_is_shallow(g_repo)); } +void test_repo_shallow__clears_errors(void) +{ + g_repo = cl_git_sandbox_init("testrepo.git"); + cl_assert_equal_i(0, git_repository_is_shallow(g_repo)); + cl_assert_equal_p(NULL, giterr_last()); +} |