summaryrefslogtreecommitdiff
path: root/tests-clar/stash/drop.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-04-15 23:18:24 +0200
committerVicent Marti <tanoku@gmail.com>2013-04-15 23:18:24 +0200
commitd064c74794f51e759cd84648f84f2609d3283ecc (patch)
tree8ec58c4678fbc85f0038bf3eff89d67b3879ead7 /tests-clar/stash/drop.c
parent77849ebf1e39126bcb9f1245423749d45d226022 (diff)
parent201566539f38874b4e93c6a36593bd0d10e6352c (diff)
downloadlibgit2-d064c74794f51e759cd84648f84f2609d3283ecc.tar.gz
Merge remote-tracking branch 'ben/unified-revparse' into development
Diffstat (limited to 'tests-clar/stash/drop.c')
-rw-r--r--tests-clar/stash/drop.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests-clar/stash/drop.c b/tests-clar/stash/drop.c
index d171390da..12f922630 100644
--- a/tests-clar/stash/drop.c
+++ b/tests-clar/stash/drop.c
@@ -146,8 +146,6 @@ void retrieve_top_stash_id(git_oid *out)
cl_git_pass(git_reference_name_to_id(out, repo, GIT_REFS_STASH_FILE));
cl_assert_equal_i(true, git_oid_cmp(out, git_object_id(top_stash)) == 0);
-
- git_object_free(top_stash);
}
void test_stash_drop__dropping_the_top_stash_updates_the_stash_reference(void)
@@ -160,15 +158,11 @@ void test_stash_drop__dropping_the_top_stash_updates_the_stash_reference(void)
retrieve_top_stash_id(&oid);
cl_git_pass(git_revparse_single(&next_top_stash, repo, "stash@{1}"));
- cl_assert_equal_i(
- false, git_oid_cmp(&oid, git_object_id(next_top_stash)) == 0);
+ cl_assert_equal_i(false, git_oid_cmp(&oid, git_object_id(next_top_stash)) == 0);
cl_git_pass(git_stash_drop(repo, 0));
retrieve_top_stash_id(&oid);
- cl_assert_equal_i(
- true, git_oid_cmp(&oid, git_object_id(next_top_stash)) == 0);
-
- git_object_free(next_top_stash);
+ cl_git_pass(git_oid_cmp(&oid, git_object_id(next_top_stash)));
}