+2 -3 +/-1 browse
1 | diff --git a/ayllu/src/web2/routes/git.rs b/ayllu/src/web2/routes/git.rs |
2 | index 8c28c8c..eddde5a 100644 |
3 | --- a/ayllu/src/web2/routes/git.rs |
4 | +++ b/ayllu/src/web2/routes/git.rs |
5 | @@ -81,9 +81,8 @@ pub async fn handle( |
6 | headers: HeaderMap, |
7 | body: Body, |
8 | ) -> Result<Response, Error> { |
9 | - if !cfg.git.smart_http || preamble.hidden { |
10 | - // if the smart_http server is disabled or the repository is hidden |
11 | - // always return 404. |
12 | + if !cfg.git.smart_http { |
13 | + // if the smart_http server is disabled always return 404. |
14 | return Err(Error::NotFound("repository not found".to_string())); |
15 | } |
16 |