Replace all die("BUG: ...") calls by BUG() ones
[gitweb.git] / transport.c
index 94eccf29aa3f9758f5acaa9daddedcd559ad3915..969645ccb13b299657722355a637b1febe1343a4 100644 (file)
@@ -636,7 +636,7 @@ void transport_take_over(struct transport *transport,
        struct git_transport_data *data;
 
        if (!transport->smart_options)
-               die("BUG: taking over transport requires non-NULL "
+               BUG("taking over transport requires non-NULL "
                    "smart_options field.");
 
        data = xcalloc(1, sizeof(*data));
@@ -761,7 +761,7 @@ int is_transport_allowed(const char *type, int from_user)
                return from_user;
        }
 
-       die("BUG: invalid protocol_allow_config type");
+       BUG("invalid protocol_allow_config type");
 }
 
 void transport_check_allowed(const char *type)