Skip to content

Commit

Permalink
make store repository path case insensitive (#906)
Browse files Browse the repository at this point in the history
Store repository lookup path as lower case

Related to #560
  • Loading branch information
Roaders authored and aciccarello committed Nov 23, 2018
1 parent 6d5b21b commit 955c388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/converter/plugins/GitHubPlugin.ts
Expand Up @@ -204,15 +204,15 @@ export class GitHubPlugin extends ConverterComponent {
if (!this.repositories.hasOwnProperty(path)) {
continue;
}
if (fileName.substr(0, path.length) === path) {
if (fileName.substr(0, path.length).toLowerCase() === path) {
return this.repositories[path];
}
}

// Try to create a new repository
const repository = Repository.tryCreateRepository(dirName, this.gitRevision);
if (repository) {
this.repositories[repository.path] = repository;
this.repositories[repository.path.toLowerCase()] = repository;
return repository;
}

Expand Down

0 comments on commit 955c388

Please sign in to comment.