Merge branch 'bk/refs-multi-update'
Give "update-refs" a "--stdin" option to read multiple update requests and perform them in an all-or-none fashion. * bk/refs-multi-update: update-ref: add test cases covering --stdin signature update-ref: support multiple simultaneous updates refs: add update_refs for multiple simultaneous updates refs: add function to repack without multiple refs refs: factor delete_ref loose ref step into a helper refs: factor update_ref steps into helpers refs: report ref type from lock_any_ref_for_update reset: rename update_refs to reset_refs
This commit is contained in:
@ -574,7 +574,7 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
|
||||
if (annotate)
|
||||
create_tag(object, tag, &buf, &opt, prev, object);
|
||||
|
||||
lock = lock_any_ref_for_update(ref.buf, prev, 0);
|
||||
lock = lock_any_ref_for_update(ref.buf, prev, 0, NULL);
|
||||
if (!lock)
|
||||
die(_("%s: cannot lock the ref"), ref.buf);
|
||||
if (write_ref_sha1(lock, object, NULL) < 0)
|
||||
|
Reference in New Issue
Block a user