Skip to content

Commit 3c27e2e

Browse files
chriscoolgitster
authored andcommitted
helper/test-ref-store: fix "new-sha1" vs "old-sha1" typo
It looks like it is a copy-paste error made in 80f2a60 (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>
1 parent 80f2a60 commit 3c27e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/helper/test-ref-store.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static int cmd_update_ref(struct ref_store *refs, const char **argv)
211211
{
212212
const char *msg = notnull(*argv++, "msg");
213213
const char *refname = notnull(*argv++, "refname");
214-
const char *new_sha1_buf = notnull(*argv++, "old-sha1");
214+
const char *new_sha1_buf = notnull(*argv++, "new-sha1");
215215
const char *old_sha1_buf = notnull(*argv++, "old-sha1");
216216
unsigned int flags = arg_flags(*argv++, "flags");
217217
unsigned char old_sha1[20];

0 commit comments

Comments
 (0)