summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2019-01-06 15:46:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-17 18:55:03 (GMT)
commit3c27e2e05935248734cdb4d5220a0785d79b5ae6 (patch)
tree74ec652070ee6b0cf9afe87f718c98fd2efd32fb /t/helper
parent80f2a6097c403234892b884a21810411e5837853 (diff)
downloadgit-3c27e2e05935248734cdb4d5220a0785d79b5ae6.zip
git-3c27e2e05935248734cdb4d5220a0785d79b5ae6.tar.gz
git-3c27e2e05935248734cdb4d5220a0785d79b5ae6.tar.bz2
helper/test-ref-store: fix "new-sha1" vs "old-sha1" typo
It looks like it is a copy-paste error made in 80f2a6097c (t/helper: add test-ref-store to test ref-store functions, 2017-03-26) to pass "old-sha1" instead of "new-sha1" to notnull() when we get the new sha1 argument from const char **argv. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Acked-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-ref-store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-ref-store.c b/t/helper/test-ref-store.c
index 2d84c45..862331c 100644
--- a/t/helper/test-ref-store.c
+++ b/t/helper/test-ref-store.c
@@ -211,7 +211,7 @@ static int cmd_update_ref(struct ref_store *refs, const char **argv)
{
const char *msg = notnull(*argv++, "msg");
const char *refname = notnull(*argv++, "refname");
- const char *new_sha1_buf = notnull(*argv++, "old-sha1");
+ const char *new_sha1_buf = notnull(*argv++, "new-sha1");
const char *old_sha1_buf = notnull(*argv++, "old-sha1");
unsigned int flags = arg_flags(*argv++, "flags");
unsigned char old_sha1[20];