git-bundle: die if a given ref is not included in bundle
[git.git] / builtin-bundle.c
index 33b533f8219c8922ca01a5fad21a64c5401fecae..ca3de60e44267e8592b86a9632a25f66c5eedea8 100644 (file)
@@ -328,11 +328,9 @@ static int create_bundle(struct bundle_header *header, const char *path,
                 * other limiting options could have prevented all the tips
                 * from getting output.
                 */
-               if (!(e->item->flags & SHOWN)) {
-                       warn("ref '%s' is excluded by the rev-list options",
+               if (!(e->item->flags & SHOWN))
+                       die("ref '%s' is excluded by the rev-list options",
                                e->name);
-                       continue;
-               }
                write_or_die(bundle_fd, sha1_to_hex(e->item->sha1), 40);
                write_or_die(bundle_fd, " ", 1);
                write_or_die(bundle_fd, ref, strlen(ref));