diff options
author | Ben Straub <bs@github.com> | 2014-01-28 10:31:54 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2014-01-30 15:52:13 -0800 |
commit | 48110f67e4a21caac1b8157d8239d16cd9781e51 (patch) | |
tree | c4f5622e70fe4fc88a6400468e56eee7afa0d033 /tests/refs/branches/create.c | |
parent | 1cc974ab625c2fa0794130eb97ca88c449fc1a06 (diff) | |
download | libgit2-48110f67e4a21caac1b8157d8239d16cd9781e51.tar.gz |
Deleting a branch deletes its reflog
Diffstat (limited to 'tests/refs/branches/create.c')
-rw-r--r-- | tests/refs/branches/create.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/refs/branches/create.c b/tests/refs/branches/create.c index 43f2affb9..0c0fdb013 100644 --- a/tests/refs/branches/create.c +++ b/tests/refs/branches/create.c @@ -87,23 +87,3 @@ void test_refs_branches_create__creation_creates_new_reflog(void) entry = git_reflog_entry_byindex(log, 0); cl_assert_equal_s("create!", git_reflog_entry_message(entry)); } - -void test_refs_branches_create__recreation_updates_existing_reflog(void) -{ - git_reflog *log; - const git_reflog_entry *entry1, *entry2; - - retrieve_known_commit(&target, repo); - - cl_git_pass(git_branch_create(&branch, repo, NEW_BRANCH_NAME, target, false, NULL, "Create 1")); - cl_git_pass(git_branch_delete(branch)); - cl_git_pass(git_branch_create(&branch, repo, NEW_BRANCH_NAME, target, false, NULL, "Create 2")); - cl_git_pass(git_reflog_read(&log, repo, "refs/heads/" NEW_BRANCH_NAME)); - - cl_assert_equal_i(2, git_reflog_entrycount(log)); - entry1 = git_reflog_entry_byindex(log, 1); - entry2 = git_reflog_entry_byindex(log, 0); - cl_assert_equal_s("Create 1", git_reflog_entry_message(entry1)); - cl_assert_equal_s("Create 2", git_reflog_entry_message(entry2)); -} - |