diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-01-17 15:58:23 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-17 15:58:23 -0800 |
commit | d0605072911a4c93a7eacf1fb55e79227c457e34 (patch) | |
tree | ad759cd9bd8ebd552a63a517f700f7de910227bb /http-backend.c | |
parent | 4fa088209c81845e73756a4173a8c954e25958d2 (diff) | |
parent | e8189ee90e65094dd46a9e4ee6455d9efa90fa76 (diff) | |
download | git-d0605072911a4c93a7eacf1fb55e79227c457e34.tar.gz git-d0605072911a4c93a7eacf1fb55e79227c457e34.tar.xz |
Merge branch 'tc/smart-http-restrict'
* tc/smart-http-restrict:
Test t5560: Fix test when run with dash
Smart-http tests: Test http-backend without curl or a webserver
Smart-http tests: Break test t5560-http-backend into pieces
Smart-http tests: Improve coverage in test t5560
Smart-http: check if repository is OK to export before serving it
Diffstat (limited to 'http-backend.c')
-rw-r--r-- | http-backend.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |