diff options
| author | Russell Belfer <rb@github.com> | 2012-08-09 19:43:25 -0700 | 
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2012-08-24 11:00:27 -0700 | 
| commit | 5f4a61aea834fe25ce1596bc9c0e0b5e563aa98b (patch) | |
| tree | da0237ee649e009b5f914dfdace54d26e819aaaf /tests-clar/status/submodules.c | |
| parent | 0c8858de8c82bae3fd88513724689a07d231da7e (diff) | |
| download | libgit2-5f4a61aea834fe25ce1596bc9c0e0b5e563aa98b.tar.gz | |
Working implementation of git_submodule_status
This is a big redesign of the git_submodule_status API and the
implementation of the redesigned API.  It also fixes a number of
bugs that I found in other parts of the submodule API while
writing the tests for the status part.
This also fixes a couple of bugs in the iterators that had not
been noticed before - one with iterating when there is a gitlink
(i.e. separate-work-dir) and one where I was treating anything
even vaguely submodule-like as a submodule, more aggressively
than core git does.
Diffstat (limited to 'tests-clar/status/submodules.c')
| -rw-r--r-- | tests-clar/status/submodules.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/tests-clar/status/submodules.c b/tests-clar/status/submodules.c index 3a69e0c47..24dd660ab 100644 --- a/tests-clar/status/submodules.c +++ b/tests-clar/status/submodules.c @@ -50,7 +50,7 @@ void test_status_submodules__0(void)  		git_status_foreach(g_repo, cb_status__count, &counts)  	); -	cl_assert(counts == 6); +	cl_assert_equal_i(6, counts);  }  static const char *expected_files[] = { @@ -95,12 +95,12 @@ void test_status_submodules__1(void)  		git_status_foreach(g_repo, cb_status__match, &index)  	); -	cl_assert(index == 6); +	cl_assert_equal_i(6, index);  }  void test_status_submodules__single_file(void)  { -	unsigned int status; +	unsigned int status = 0;  	cl_git_pass( git_status_file(&status, g_repo, "testrepo") ); -	cl_assert(status == 0); +	cl_assert(!status);  }  | 
