git.c: make sure we do not leak GIT_* to alias scripts
[gitweb.git] / transport-helper.c
index 68e498eebdda08f992e11154039e2e94e58f10d1..12f50d5b94802eed31bf36377f297bbd62f7d83c 100644 (file)
@@ -1043,6 +1043,8 @@ int transport_helper_init(struct transport *transport, const char *name)
        struct helper_data *data = xcalloc(1, sizeof(*data));
        data->name = name;
 
+       transport_check_allowed(name);
+
        if (getenv("GIT_TRANSPORT_HELPER_DEBUG"))
                debug = 1;