The seventh batch for 2.18
[gitweb.git] / builtin / clone.c
index 84f1473d19dc5a521e58c0bc1a7363808888dff1..ecd8495dab30953a87cdc5f0125b8d7dd18abcbd 100644 (file)
@@ -823,7 +823,7 @@ static void write_refspec_config(const char *src_ref_prefix,
                        } else if (remote_head_points_at) {
                                const char *head = remote_head_points_at->name;
                                if (!skip_prefix(head, "refs/heads/", &head))
-                                       die("BUG: remote HEAD points at non-head?");
+                                       BUG("remote HEAD points at non-head?");
 
                                strbuf_addf(&value, "+%s:%s%s", remote_head_points_at->name,
                                                branch_top->buf, head);