X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=http-backend.c;h=345c12b79064f23e0ae0a15781731b9a42272d83;hb=d7173d942ea897b67ac9ba3bab2a0cc374684ca6;hp=f729488fc5f787c0f4997aacdd1bb14732d717f7;hpb=7b576f9910a2945688f04f6ff9d03771f2956618;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);