push: update remote tags only with force
v2 cover push: update remote tags only with force
Patch series to prevent push from updating remote tags w/o forcing them. Split out original patch to ease review.
Chris Rorvick (5):
push: return reject reasons via a mask
push: add advice for rejected tag reference
push: flag updates
push: flag updates that require force
push: update remote tags only with force
Documentation/git-push.txt | 10 +++++----- builtin/push.c | 24 +++++++++++++++--------- builtin/send-pack.c | 6 ++++++ cache.h | 7 ++++++- remote.c | 39 +++++++++++++++++++++++++++++++-------- t/t5516-fetch-push.sh | 30 +++++++++++++++++++++++++++++- transport-helper.c | 6 ++++++ transport.c | 25 +++++++++++++++---------- transport.h | 10 ++++++---- 9 files changed, 119 insertions(+), 38 deletions(-)
PATCH v2 1/5 push: return reject reasons via a mask
Pass all rejection reasons back from transport_push(). The logic is simpler and more flexible with regard to providing useful feedback.
--- builtin/push.c | 13 ++++--------- transport.c | 17 ++++++++--------- transport.h | 9 +++++---- 3 files changed, 17 insertions(+), 22 deletions(-)
builtin/push.c +4 -9
@@ -244,7 +244,7 @@ static void advise_checkout_pull_push(void)static int push_with_options (struct transport *transport,int flags) {int err; -int nonfastforward; +unsigned int reject_mask;transport_set_verbosity (transport, verbosity, progress);
@@ -257,7 +257,7 @@ static int push_with_options(struct transport *transport, int flags)if (verbosity >0 )fprintf (stderr,_ ("Pushing to %s\n" ), transport->url); err =transport_push (transport, refspec_nr, refspec, flags, - &nonfastforward); + &reject_mask);if (err !=0 )error (_ ("failed to push some refs to '%s'" ), transport->url);
@@ -265,18 +265,13 @@ static int push_with_options(struct transport *transport, int flags)if (!err)return 0 ; -switch (nonfastforward) { -default : -break ; -case NON_FF_HEAD : +if (reject_mask &NON_FF_HEAD ) {advise_pull_before_push (); -break ; -case NON_FF_OTHER : + }else if (reject_mask &NON_FF_OTHER ) {if (default_matching_used)advise_use_upstream ();else advise_checkout_pull_push (); -break ; }return 1 ;
transport.c +8 -9
@@ -714,7 +714,7 @@ static int print_one_push_status(struct ref *ref, const char *dest, int count, i }void transport_print_push_status (const char *dest,struct ref *refs, -int verbose,int porcelain,int *nonfastforward) +int verbose,int porcelain,unsigned int *reject_mask) {struct ref *ref;int n =0 ;
@@ -733,18 +733,17 @@ void transport_print_push_status(const char *dest, struct ref *refs,if (ref->status ==REF_STATUS_OK ) n +=print_one_push_status (ref, dest, n, porcelain); - *nonfastforward =0 ; + *reject_mask =0 ;for (ref = refs; ref; ref = ref->next) {if (ref->status !=REF_STATUS_NONE && ref->status !=REF_STATUS_UPTODATE && ref->status !=REF_STATUS_OK ) n +=print_one_push_status (ref, dest, n, porcelain); -if (ref->status ==REF_STATUS_REJECT_NONFASTFORWARD && - *nonfastforward !=NON_FF_HEAD ) { +if (ref->status ==REF_STATUS_REJECT_NONFASTFORWARD ) {if (!strcmp (head, ref->name)) - *nonfastforward =NON_FF_HEAD ; + *reject_mask |=NON_FF_HEAD ;else - *nonfastforward =NON_FF_OTHER ; + *reject_mask |=NON_FF_OTHER ; } } }
@@ -1031,9 +1030,9 @@ static void die_with_unpushed_submodules(struct string_list *needs_pushing)int transport_push (struct transport *transport,int refspec_nr,const char **refspec,int flags, -int *nonfastforward) +unsigned int *reject_mask) { - *nonfastforward =0 ; + *reject_mask =0 ;transport_verify_remote_names (refspec_nr, refspec);if (transport->push) {
@@ -1099,7 +1098,7 @@ int transport_push(struct transport *transport,if (!quiet || err)transport_print_push_status (transport->url, remote_refs, verbose | porcelain, porcelain, - nonfastforward); + reject_mask);if (flags &TRANSPORT_PUSH_SET_UPSTREAM )set_upstreams (transport, remote_refs, pretend);
transport.h +5 -4
@@ -140,11 +140,12 @@ int transport_set_option(struct transport *transport, const char *name,void transport_set_verbosity (struct transport *transport,int verbosity,int force_progress); -#define NON_FF_HEAD 1 -#define NON_FF_OTHER 2 +#define NON_FF_HEAD 0x01 +#define NON_FF_OTHER 0x02 +int transport_push (struct transport *connection,int refspec_nr,const char **refspec,int flags, -int * nonfastforward); +unsigned int * reject_mask);const struct ref *transport_get_remote_refs (struct transport *transport);
@@ -170,7 +171,7 @@ void transport_update_tracking_ref(struct remote *remote, struct ref *ref, int vint transport_refs_pushed (struct ref *ref);void transport_print_push_status (const char *dest,struct ref *refs, -int verbose,int porcelain,int *nonfastforward); +int verbose,int porcelain,unsigned int *reject_mask);typedef void alternate_ref_fn (const struct ref *,void *);extern void for_each_alternate_ref (alternate_ref_fn ,void *);
Signature · 1 line
1.7.1
Re: [PATCH v2 1/5] push: return reject reasons via a mask
transport.h void transport_update_tracking_ref(struct remote *remote, struct ref *ref, int v · line 174
Quoted 7 lines · Chris Rorvick
Pass all rejection reasons back from
transport_push(). The logic is simpler and more flexible with regard to providing useful feedback. [...]void transport_print_push_status(const char *dest, struct ref *refs,
transport.h +1
-1- int verbose, int porcelain, int *nonfastforward); + int verbose, int porcelain, unsigned int *reject_mask);
You missed updating one call-site of this function in builtin/send-pack.c (gcc -Wall will now complain of the signed/unsigned mismatch in the passed-in pointer).
-Peff
PATCH v2 2/5 push: add advice for rejected tag reference
In reply to Chris RorvickAdvising the user to fetch and merge only makes sense if the rejected reference is a branch. If none of the rejections were for branches, tell the user they need to force the update(s).
--- builtin/push.c | 16 ++++++++++++++-- cache.h | 1 + remote.c | 7 +++++++ transport.c | 6 ++++-- transport.h | 5 +++-- 5 files changed, 29 insertions(+), 6 deletions(-)
builtin/push.c +14 -2
@@ -220,6 +220,11 @@ static const char message_advice_checkout_pull_push[] ="(e.g. 'git pull') before pushing again.\n" "See the 'Note about fast-forwards' in 'git push --help' for details."); +static const char message_advice_ref_already_exists[] = +N_ ("Updates were rejected because a matching reference already exists in\n" +"the remote and the update is not a fast-forward. Use git push -f if\n" +"you really want to make this update." ); +static void advise_pull_before_push (void ) {if (!advice_push_non_ff_current || !advice_push_nonfastforward)
@@ -241,6 +246,11 @@ static void advise_checkout_pull_push(void)advise (_ (message_advice_checkout_pull_push)); } +static void advise_ref_already_exists (void ) +{ +advise (_ (message_advice_ref_already_exists)); +} +static int push_with_options (struct transport *transport,int flags) {int err;
@@ -265,13 +275,15 @@ static int push_with_options(struct transport *transport, int flags)if (!err)return 0 ; -if (reject_mask &NON_FF_HEAD ) { +if (reject_mask &REJECT_NON_FF_HEAD ) {advise_pull_before_push (); - }else if (reject_mask &NON_FF_OTHER ) { + }else if (reject_mask &REJECT_NON_FF_OTHER ) {if (default_matching_used)advise_use_upstream ();else advise_checkout_pull_push (); + }else if (reject_mask &REJECT_ALREADY_EXISTS ) { +advise_ref_already_exists (); }return 1 ;
cache.h +1 -0
@@ -1002,6 +1002,7 @@ struct ref { unsigned int force:1, merge:1, nonfastforward:1, + forwardable:1, deletion:1;enum {REF_STATUS_NONE =0 ,
remote.c +7 -0
@@ -1316,6 +1316,13 @@ void set_ref_status_for_push(struct ref *remote_refs, int send_mirror,* always allowed. */ +if (prefixcmp (ref->name,"refs/tags/" )) { +struct object *old =parse_object (ref->old_sha1); +struct object *new =parse_object (ref->new_sha1); + ref->forwardable = (old && new && + old->type ==OBJ_COMMIT && new->type ==OBJ_COMMIT ); + } + ref->nonfastforward = !ref->deletion && !is_null_sha1(ref->old_sha1) &&
transport.c +4 -2
@@ -740,10 +740,12 @@ void transport_print_push_status(const char *dest, struct ref *refs, ref->status != REF_STATUS_OK) n +=print_one_push_status (ref, dest, n, porcelain);if (ref->status ==REF_STATUS_REJECT_NONFASTFORWARD ) { +if (!ref->forwardable) + *reject_mask |=REJECT_ALREADY_EXISTS ;if (!strcmp (head, ref->name)) - *reject_mask |=NON_FF_HEAD ; + *reject_mask |=REJECT_NON_FF_HEAD ;else - *reject_mask |=NON_FF_OTHER ; + *reject_mask |=REJECT_NON_FF_OTHER ; } } }
transport.h +3 -2
@@ -140,8 +140,9 @@ int transport_set_option(struct transport *transport, const char *name,void transport_set_verbosity (struct transport *transport,int verbosity,int force_progress); -#define NON_FF_HEAD 0x01 -#define NON_FF_OTHER 0x02 +#define REJECT_NON_FF_HEAD 0x01 +#define REJECT_NON_FF_OTHER 0x02 +#define REJECT_ALREADY_EXISTS 0x04 int transport_push(struct transport *connection, int refspec_nr, const char **refspec, int flags,
Signature · 1 line
1.7.1
PATCH v2 3/5 push: flag updates
In reply to Chris RorvickIf the reference exists on the remote and the the update is not a delete, then mark as an update. This is in preparation for handling tags and branches differently when pushing.
--- cache.h | 1 + remote.c | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-)
cache.h +1 -0
@@ -1003,6 +1003,7 @@ struct ref { merge:1, nonfastforward:1, forwardable:1, + update:1, deletion:1;enum {REF_STATUS_NONE =0 ,
remote.c +12 -7
@@ -1323,15 +1323,20 @@ void set_ref_status_for_push(struct ref *remote_refs, int send_mirror, old->type == OBJ_COMMIT && new->type == OBJ_COMMIT); } - ref->nonfastforward = + ref->update = !ref->deletion && - !is_null_sha1 (ref->old_sha1) && - (!has_sha1_file (ref->old_sha1) - || !ref_newer (ref->new_sha1, ref->old_sha1)); + !is_null_sha1 (ref->old_sha1); -if (ref->nonfastforward && !ref->force && !force_update) { - ref->status =REF_STATUS_REJECT_NONFASTFORWARD ; -continue ; +if (ref->update) { + ref->nonfastforward = + ref->update && + (!has_sha1_file (ref->old_sha1) + || !ref_newer (ref->new_sha1, ref->old_sha1)); + +if (ref->nonfastforward && !ref->force && !force_update) { + ref->status =REF_STATUS_REJECT_NONFASTFORWARD ; +continue ; + } } } }
Signature · 1 line
1.7.1
PATCH v2 4/5 push: flag updates that require force
In reply to Chris RorvickAdd a flag for indicating an update to a reference requires force. Currently the nonfastforward flag of a ref is used for this when generating status the status message. A separate flag insulates the status logic from the details of set_ref_status_for_push().
--- cache.h | 4 +++- remote.c | 11 ++++++++--- transport.c | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-)
cache.h +3 -1
@@ -999,7 +999,9 @@ struct ref {unsigned char old_sha1[20 ];unsigned char new_sha1[20 ];char *symref; - unsigned int force:1, +unsigned int + force:1, + requires_force:1, merge:1, nonfastforward:1, forwardable:1,
remote.c +8 -3
@@ -1285,6 +1285,8 @@ void set_ref_status_for_push(struct ref *remote_refs, int send_mirror,struct ref *ref;for (ref = remote_refs; ref; ref = ref->next) { +int force_ref_update = ref->force || force_update; +if (ref->peer_ref)hashcpy (ref->new_sha1, ref->peer_ref->new_sha1);else if (!send_mirror)
@@ -1333,9 +1335,12 @@ void set_ref_status_for_push(struct ref *remote_refs, int send_mirror, (!has_sha1_file (ref->old_sha1) || !ref_newer (ref->new_sha1, ref->old_sha1)); -if (ref->nonfastforward && !ref->force && !force_update) { - ref->status =REF_STATUS_REJECT_NONFASTFORWARD ; -continue ; +if (ref->nonfastforward) { + ref->requires_force =1 ; +if (!force_ref_update) { + ref->status =REF_STATUS_REJECT_NONFASTFORWARD ; +continue ; + } } } }
transport.c +1 -1
@@ -659,7 +659,7 @@ static void print_ok_ref_status(struct ref *ref, int porcelain)const char *msg;strcpy (quickref,status_abbrev (ref->old_sha1)); -if (ref->nonfastforward) { +if (ref->requires_force) {strcat (quickref,"..." ); type ='+' ; msg ="forced update" ;
Signature · 1 line
1.7.1
PATCH v2 5/5 push: update remote tags only with force
In reply to Chris RorvickReferences are allowed to update from one commit-ish to another if the former is a ancestor of the latter. This behavior is oriented to branches which are expected to move with commits. Tag references are expected to be static in a repository, though, thus an update to a tag (lightweight and annotated) should be rejected unless the update is forced.
To enable this functionality, the following checks have been added to set_ref_status_for_push() for updating refs (i.e, not new or deletion) to restrict fast-forwarding in pushes:
1) The old and new references must be commits. If this fails, it is not a valid update for a branch.
2) The reference name cannot start with "refs/tags/". This catches lightweight tags which (usually) point to commits and therefore would not be caught by (1).
If either of these checks fails, then it is flagged (by default) with a status indicating the update is being rejected due to the reference already existing in the remote. This can be overridden by passing --force to git push.
--- Documentation/git-push.txt | 10 +++++----- builtin/push.c | 3 +-- builtin/send-pack.c | 6 ++++++ cache.h | 1 + remote.c | 8 +++++++- t/t5516-fetch-push.sh | 30 +++++++++++++++++++++++++++++- transport-helper.c | 6 ++++++ transport.c | 8 ++++++-- 8 files changed, 61 insertions(+), 11 deletions(-)
Documentation/git-push.txt +5 -5
@@ -51,11 +51,11 @@ be named. If `:`<dst> is omitted, the same ref as <src> will be updated. + The object referenced by <src> is used to update the <dst> reference -on the remote side, but by default this is only allowed if the -update can fast-forward <dst>. By having the optional leading `+`, -you can tell git to update the <dst> ref even when the update is not a -fast-forward. This does *not* attempt to merge <src> into <dst>. See -EXAMPLES below for details. +on the remote side. By default this is only allowed if the update is +a branch, and then only if it can fast-forward <dst>. By having the +optional leading `+`, you can tell git to update the <dst> ref even when +the update is not a branch or it is not a fast-forward. This does *not* +attempt to merge <src> into <dst>. See EXAMPLES below for details. + `tag <tag>` means the same as `refs/tags/<tag>:refs/tags/<tag>`. +
builtin/push.c +1 -2
@@ -222,8 +222,7 @@ static const char message_advice_checkout_pull_push[] =static const char message_advice_ref_already_exists[] =N_ ("Updates were rejected because a matching reference already exists in\n" -"the remote and the update is not a fast-forward. Use git push -f if\n" -"you really want to make this update." ); +"the remote. Use git push -f if you really want to make this update." );static void advise_pull_before_push (void ) {
builtin/send-pack.c +6 -0
@@ -202,6 +202,11 @@ static void print_helper_status(struct ref *ref) msg ="non-fast forward" ;break ; +case REF_STATUS_REJECT_ALREADY_EXISTS : + res ="error" ; + msg ="already exists" ; +break ; +case REF_STATUS_REJECT_NODELETE :case REF_STATUS_REMOTE_REJECT : res ="error" ;
@@ -288,6 +293,7 @@ int send_pack(struct send_pack_args *args,/* Check for statuses set by set_ref_status_for_push() */ switch (ref->status) {case REF_STATUS_REJECT_NONFASTFORWARD : +case REF_STATUS_REJECT_ALREADY_EXISTS :case REF_STATUS_UPTODATE :continue ;default :
cache.h +1 -0
@@ -1011,6 +1011,7 @@ struct ref {REF_STATUS_NONE =0 ,REF_STATUS_OK ,REF_STATUS_REJECT_NONFASTFORWARD , +REF_STATUS_REJECT_ALREADY_EXISTS ,REF_STATUS_REJECT_NODELETE ,REF_STATUS_UPTODATE , REF_STATUS_REMOTE_REJECT,
remote.c +7 -1
@@ -1335,7 +1335,13 @@ void set_ref_status_for_push(struct ref *remote_refs, int send_mirror, (!has_sha1_file (ref->old_sha1) || !ref_newer (ref->new_sha1, ref->old_sha1)); -if (ref->nonfastforward) { +if (!ref->forwardable) { + ref->requires_force =1 ; +if (!force_ref_update) { + ref->status =REF_STATUS_REJECT_ALREADY_EXISTS ; +continue ; + } + }else if (ref->nonfastforward) { ref->requires_force =1 ;if (!force_ref_update) { ref->status =REF_STATUS_REJECT_NONFASTFORWARD ;
t/t5516-fetch-push.sh +29 -1
@@ -368,7 +368,7 @@ test_expect_success 'push with colon-less refspec (2)' ' git branch -D frotz fi && git tag -f frotz && - git push testrepo frotz && + git push -f testrepo frotz && check_push_result $the_commit tags/frotz && check_push_result $the_first_commit heads/frotz
@@ -929,6 +929,34 @@ test_expect_success 'push into aliased refs (inconsistent)' ' ) ' +test_expect_success 'push tag requires --force to update remote tag' ' + mk_test heads/master && + mk_child child1 && + mk_child child2 && + ( + cd child1 && + git tag lw_tag && + git tag -a -m "message 1" ann_tag && + git push ../child2 lw_tag && + git push ../child2 ann_tag && + >file1 && + git add file1 && + git commit -m "file1" && + git tag -f lw_tag && + git tag -f -a -m "message 2" ann_tag && + test_must_fail git push ../child2 lw_tag && + test_must_fail git push ../child2 ann_tag && + git push --force ../child2 lw_tag && + git push --force ../child2 ann_tag && + git tag -f lw_tag HEAD~ && + git tag -f -a -m "message 3" ann_tag && + test_must_fail git push ../child2 lw_tag && + test_must_fail git push ../child2 ann_tag && + git push --force ../child2 lw_tag && + git push --force ../child2 ann_tag + ) +' + test_expect_success 'push --porcelain' ' mk_empty && echo >.git/foo "To testrepo" &&
transport-helper.c +6 -0
@@ -643,6 +643,11 @@ static void push_update_ref_status(struct strbuf *buf,free (msg); msg =NULL ; } +else if (!strcmp (msg,"already exists" )) { + status =REF_STATUS_REJECT_ALREADY_EXISTS ; +free (msg); + msg =NULL ; + } }if (*ref)
@@ -702,6 +707,7 @@ static int push_refs_with_push(struct transport *transport,/* Check for statuses set by set_ref_status_for_push() */ switch (ref->status) {case REF_STATUS_REJECT_NONFASTFORWARD : +case REF_STATUS_REJECT_ALREADY_EXISTS :case REF_STATUS_UPTODATE :continue ;default :
transport.c +6 -2
@@ -695,6 +695,10 @@ static int print_one_push_status(struct ref *ref, const char *dest, int count, iprint_ref_status ('!' ,"[rejected]" , ref, ref->peer_ref,"non-fast-forward" , porcelain);break ; +case REF_STATUS_REJECT_ALREADY_EXISTS : +print_ref_status ('!' ,"[rejected]" , ref, ref->peer_ref, +"already exists" , porcelain); +break ;case REF_STATUS_REMOTE_REJECT : print_ref_status('!', "[remote rejected]", ref, ref->deletion ? NULL : ref->peer_ref,
@@ -740,12 +744,12 @@ void transport_print_push_status(const char *dest, struct ref *refs, ref->status != REF_STATUS_OK) n +=print_one_push_status (ref, dest, n, porcelain);if (ref->status ==REF_STATUS_REJECT_NONFASTFORWARD ) { -if (!ref->forwardable) - *reject_mask |=REJECT_ALREADY_EXISTS ;if (!strcmp (head, ref->name)) *reject_mask |=REJECT_NON_FF_HEAD ;else *reject_mask |=REJECT_NON_FF_OTHER ; + }else if (ref->status ==REF_STATUS_REJECT_ALREADY_EXISTS ) { + *reject_mask |=REJECT_ALREADY_EXISTS ; } } }
Signature · 1 line
1.7.1
Quoted 10 lines · Chris Rorvick
Patch series to prevent push from updating remote tags w/o forcing them. Split out original patch to ease review.
Chris Rorvick (5):
push: return reject reasons via a mask
push: add advice for rejected tag reference
push: flag updates
push: flag updates that require force
push: update remote tags only with force
Quoted 10 lines
Documentation/git-push.txt | 10 +++++----- builtin/push.c | 24 +++++++++++++++--------- builtin/send-pack.c | 6 ++++++ cache.h | 7 ++++++- remote.c | 39 +++++++++++++++++++++++++++++++-------- t/t5516-fetch-push.sh | 30 +++++++++++++++++++++++++++++- transport-helper.c | 6 ++++++ transport.c | 25 +++++++++++++++---------- transport.h | 10 ++++++---- 9 files changed, 119 insertions(+), 38 deletions(-)
I have not looked carefully at this topic yet, but I did try merging it to "pu" and found that it had some textual conflicts with the nd/builtin-to-libgit topic, which moves some builtin/send-pack.c code to send-pack.c. Since I am graduating that topic to master, I went ahead and just rebased your topic on top.
If you do a re-roll, please use an updated master, and feel free to grab (and double-check!) the rebase I am about to send out in 'pu'. I also included the minor signed/unsigned pointer warning fixup in the rebase, too.
-Peff
Quoted 29 lines · Jeff King
Quoted 10 lines · Chris Rorvick
Patch series to prevent push from updating remote tags w/o forcing them. Split out original patch to ease review.
Chris Rorvick (5):
push: return reject reasons via a mask
push: add advice for rejected tag reference
push: flag updates
push: flag updates that require force
push: update remote tags only with forceQuoted 10 lines
Documentation/git-push.txt | 10 +++++----- builtin/push.c | 24 +++++++++++++++--------- builtin/send-pack.c | 6 ++++++ cache.h | 7 ++++++- remote.c | 39 +++++++++++++++++++++++++++++++-------- t/t5516-fetch-push.sh | 30 +++++++++++++++++++++++++++++- transport-helper.c | 6 ++++++ transport.c | 25 +++++++++++++++---------- transport.h | 10 ++++++---- 9 files changed, 119 insertions(+), 38 deletions(-)I have not looked carefully at this topic yet, but I did try merging it to "pu" and found that it had some textual conflicts with the nd/builtin-to-libgit topic, which moves some
builtin/send-pack.ccode tosend-pack.c. Since I am graduating that topic to master, I went ahead and just rebased your topic on top.
Quoted 6 lines
If you do a re-roll, please use an updated master, and feel free to grab (and double-check!) the rebase I am about to send out in 'pu'. I also included the minor signed/unsigned pointer warning fixup in the rebase, too.
-Peff
Thanks, I've rebased and checked against the changes in pu. Looks good to me. I have a couple of other minor fixes (see below for details.) I'll include these in an update if there is sufficient interest in this.
Chris
-- 8< --
remote.c +0 -0
@@ -1351,9 +1351,8 @@ void set_ref_status_for_push(struct ref
*remote_refs, int send
if (ref->update) {
ref->nonfastforward =- ref->update &&
- (!has_sha1_file(ref->old_sha1)
- || !ref_newer(ref->new_sha1, ref->old_sha1));
+ !has_sha1_file(ref->old_sha1)
+ || !ref_newer(ref->new_sha1, ref->old_sha1);
if (!ref->forwardable) {
ref->requires_force = 1;transport.c +0 -0
@@ -749,7 +749,7 @@ void transport_print_push_status(const char *dest,
struct ref *r
else
*reject_mask |= REJECT_NON_FF_OTHER;
} else if (ref->status == REF_STATUS_REJECT_ALREADY_EXISTS) {
- *reject_mask |= REJECT_ALREADY_EXISTS;
+ *reject_mask |= REJECT_ALREADY_EXISTS;
}
}}