BUG_exit_code: fix sparse "symbol not declared" warning
[gitweb.git] / builtin / clone.c
index 7df5932b855e874d45b970f6150d65ed25b06f5f..918820c539cef1ee80caa8f228f80251f6ce9098 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);