X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=http-backend.c;h=345c12b79064f23e0ae0a15781731b9a42272d83;hb=cab1b013e6f7cc52806926a792c6798f4c7ac4be;hp=f729488fc5f787c0f4997aacdd1bb14732d717f7;hpb=3325cea0f7ef7355f6806b2fc88acdb2e27785ac;p=git.git diff --git a/http-backend.c b/http-backend.c index f729488fc..345c12b79 100644 --- a/http-backend.c +++ b/http-backend.c @@ -648,6 +648,9 @@ int main(int argc, char **argv) setup_path(); if (!enter_repo(dir, 0)) not_found("Not a git repository: '%s'", dir); + if (!getenv("GIT_HTTP_EXPORT_ALL") && + access("git-daemon-export-ok", F_OK) ) + not_found("Repository not exported: '%s'", dir); git_config(http_config, NULL); cmd->imp(cmd_arg);