refspec: s/refspec_item_init/&_or_die/g
Rename the refspec_item_init() function introduced in
6d4c057859
("refspec: introduce struct refspec", 2018-05-16) to
refspec_item_init_or_die().
This follows the convention of other *_or_die() functions, and is done
in preparation for making it a wrapper for a non-fatal variant.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
6c301adb0a
commit
dc06422183
@ -1077,7 +1077,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
|
||||
if (option_required_reference.nr || option_optional_reference.nr)
|
||||
setup_reference();
|
||||
|
||||
refspec_item_init(&refspec, value.buf, REFSPEC_FETCH);
|
||||
refspec_item_init_or_die(&refspec, value.buf, REFSPEC_FETCH);
|
||||
|
||||
strbuf_reset(&value);
|
||||
|
||||
|
Reference in New Issue
Block a user