Compare commits

...

5 Commits

Author SHA1 Message Date
1bc91a9e41 Bump version number 2019-04-30 16:46:27 +02:00
8ae71cdb5d Merge branch 'feature/case-insensitive-path' 2019-04-30 16:45:43 +02:00
8fc46ab7cc Use all lowercase path names for storage and caching
`Microsoft/vscode` and `microsoft/vscode` point to the same directory
but the repo would have been cloned twice.
2019-04-30 16:45:29 +02:00
1257db4e0d Bump version number 2019-04-30 16:37:40 +02:00
0a67278e46 Fix docker tag for tagged commits 2019-04-30 16:37:04 +02:00
4 changed files with 4 additions and 4 deletions

View File

@ -12,9 +12,9 @@ variables:
CONTAINER_BUILDER_IMAGE: $CI_REGISTRY_IMAGE:builder-latest
CONTAINER_TEST_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
CONTAINER_RELEASE_IMAGE: $CI_REGISTRY_IMAGE:latest
CONTAINER_TAG_IMAGE: $CI_REGISTRY_IMAGE:${CI_COMMIT_TAG:1}
before_script:
- export CONTAINER_TAG_IMAGE="$CI_REGISTRY_IMAGE:${CI_COMMIT_TAG:1}"
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build:

2
Cargo.lock generated
View File

@ -799,7 +799,7 @@ dependencies = [
[[package]]
name = "hoc"
version = "0.2.0"
version = "0.2.2"
dependencies = [
"actix-web 1.0.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",
"badge 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -1,6 +1,6 @@
[package]
name = "hoc"
version = "0.2.0"
version = "0.2.2"
authors = ["Valentin Brandl <vbrandl@riseup.net>"]
edition = "2018"
build = "build.rs"

View File

@ -204,7 +204,7 @@ fn hoc_request<T: Service>(
state: web::Data<Arc<State>>,
data: web::Path<(String, String)>,
) -> Result<HocResult, Error> {
let repo = format!("{}/{}", data.0, data.1);
let repo = format!("{}/{}", data.0.to_lowercase(), data.1.to_lowercase());
let service_path = format!("{}/{}", T::domain(), repo);
let path = format!("{}/{}", state.repos, service_path);
let file = Path::new(&path);