diff options
| author | Carlos Martín Nieto <cmn@elego.de> | 2011-03-29 10:52:29 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-03-29 19:58:19 +0300 |
| commit | ec99193655606eeb40abc2539296baedaf80522d (patch) | |
| tree | 28b06897ca9c2380d8c6597b2691b78ada1e42b1 /tests/t10-refs.c | |
| parent | dad4a4d582c55394031f8e78a4994da47fca7540 (diff) | |
| download | libgit2-ec99193655606eeb40abc2539296baedaf80522d.tar.gz | |
force-rename test: check for the right name
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'tests/t10-refs.c')
| -rw-r--r-- | tests/t10-refs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/t10-refs.c b/tests/t10-refs.c index e40536475..c1511040e 100644 --- a/tests/t10-refs.c +++ b/tests/t10-refs.c @@ -585,9 +585,9 @@ BEGIN_TEST(rename5, "can force-rename a reference with the name of an existing r /* Can not be renamed to the name of another existing reference. */ must_pass(git_reference_rename_force(looked_up_ref, packed_test_head_name)); - /* Failure to rename it hasn't corrupted its state */ - must_pass(git_reference_lookup(&looked_up_ref, repo, packed_head_name)); - must_be_true(!strcmp(looked_up_ref->name, packed_head_name)); + /* Check we actually renamed it */ + must_pass(git_reference_lookup(&looked_up_ref, repo, packed_test_head_name)); + must_be_true(!strcmp(looked_up_ref->name, packed_test_head_name)); close_temp_repo(repo); END_TEST |
