diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-11-18 06:29:51 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-11-18 06:30:35 +0400 |
commit | b15df1d937128bb7051ab35084195ff1980a7869 (patch) | |
tree | ccac67d86df9f6f8f2276d2b4f4b43555e99b20e /tests-clar/stash | |
parent | 1a764476d27ac1861d1433b02bc7fbff733d8942 (diff) |
reflog: make entry_byindex() and drop() git compliant
Passing 0 as the index now retrieves the most recent entry instead
of the oldest one.
Diffstat (limited to 'tests-clar/stash')
-rw-r--r-- | tests-clar/stash/drop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/stash/drop.c b/tests-clar/stash/drop.c index 39139ccae..b4f73b995 100644 --- a/tests-clar/stash/drop.c +++ b/tests-clar/stash/drop.c @@ -99,7 +99,7 @@ void test_stash_drop__dropping_an_entry_rewrites_reflog_history(void) cl_git_pass(git_stash_drop(repo, 1)); cl_git_pass(git_reflog_read(&reflog, stash)); - entry = git_reflog_entry_byindex(reflog, 1); + entry = git_reflog_entry_byindex(reflog, 0); cl_assert_equal_i(0, git_oid_cmp(&oid, git_reflog_entry_oidold(entry))); cl_assert_equal_i(count - 1, git_reflog_entrycount(reflog)); |