Thread (1 message) 1 message, 1 author, 2018-02-16

Re: [PATCH] merge: allow fast-forward when merging a tracked tag

From: Junio C Hamano <hidden>
Date: 2018-02-16 18:06:23

Eric Sunshine [off-list ref] writes:
quoted
+       tag_ref = xstrfmt("refs/tags/%s",
+                         ((struct tag *)merge_remote_util(commit)->obj)->tag);
xstrfmt() allocates a new string...
quoted
+       if (!read_ref(tag_ref, &oid) &&
+           !oidcmp(&oid, &merge_remote_util(commit)->obj->oid))
+               return 0;
...which is leaked here...
quoted
+
+       /*
+        * Otherwise, we are playing an integrator's role, making a
+        * merge with a throw-away tag from a contributor with
+        * something like "git pull $contributor $signed_tag".
+        * We want to forbid such a merge from fast-forwarding
+        * by default; otherwise we would not keep the signature
+        * anywhere.
+        */
+       return 1;
...and here.
OK.  Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help