diff options
author | Ben Straub <bs@github.com> | 2014-01-28 11:30:36 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2014-01-30 15:52:13 -0800 |
commit | ccf6ce5c895c5d2261538150e945c93799de0999 (patch) | |
tree | 54177c5c6cb78fce834ecefd2592b770987fe29f /tests/refs/revparse.c | |
parent | 540c1809f40c1bb3cf08627a85921309852fa963 (diff) | |
download | libgit2-ccf6ce5c895c5d2261538150e945c93799de0999.tar.gz |
Ensure renaming a reference updates the reflog
Diffstat (limited to 'tests/refs/revparse.c')
-rw-r--r-- | tests/refs/revparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/refs/revparse.c b/tests/refs/revparse.c index 88f270326..a540f389d 100644 --- a/tests/refs/revparse.c +++ b/tests/refs/revparse.c @@ -325,7 +325,7 @@ static void create_fake_stash_reference_and_reflog(git_repository *repo) cl_assert_equal_i(false, git_path_isfile(git_buf_cstr(&log_path))); cl_git_pass(git_reference_lookup(&master, repo, "refs/heads/master")); - cl_git_pass(git_reference_rename(&new_master, master, "refs/fakestash", 0)); + cl_git_pass(git_reference_rename(&new_master, master, "refs/fakestash", 0, NULL, NULL)); git_reference_free(master); cl_assert_equal_i(true, git_path_isfile(git_buf_cstr(&log_path))); |