Skip to content

Commit 73cc8d2

Browse files
committed
Fixes bad rename
1 parent c09b77e commit 73cc8d2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/git/remotes/custom.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,34 @@ export class CustomService extends RemoteProvider {
1515
}
1616

1717
protected getUrlForRepository(): string {
18-
return Strings.interpolate(this.config.custom!.repository, { repo: this.path });
18+
return Strings.interpolate(this.config.urls!.repository, { repo: this.path });
1919
}
2020

2121
protected getUrlForBranches(): string {
22-
return Strings.interpolate(this.config.custom!.branches, { repo: this.path });
22+
return Strings.interpolate(this.config.urls!.branches, { repo: this.path });
2323
}
2424

2525
protected getUrlForBranch(branch: string): string {
26-
return Strings.interpolate(this.config.custom!.branch, { repo: this.path, branch: branch });
26+
return Strings.interpolate(this.config.urls!.branch, { repo: this.path, branch: branch });
2727
}
2828

2929
protected getUrlForCommit(sha: string): string {
30-
return Strings.interpolate(this.config.custom!.commit, { repo: this.path, id: sha });
30+
return Strings.interpolate(this.config.urls!.commit, { repo: this.path, id: sha });
3131
}
3232

3333
protected getUrlForFile(fileName: string, branch?: string, sha?: string, range?: Range): string {
3434
let line = '';
3535
if (range) {
3636
if (range.start.line === range.end.line) {
37-
line = Strings.interpolate(this.config.custom!.fileLine, { line: range.start.line });
37+
line = Strings.interpolate(this.config.urls!.fileLine, { line: range.start.line });
3838
}
3939
else {
40-
line = Strings.interpolate(this.config.custom!.fileRange, { start: range.start.line, end: range.end.line });
40+
line = Strings.interpolate(this.config.urls!.fileRange, { start: range.start.line, end: range.end.line });
4141
}
4242
}
4343

44-
if (sha) return Strings.interpolate(this.config.custom!.fileInCommit, { repo: this.path, id: sha, file: fileName, line: line });
45-
if (branch) return Strings.interpolate(this.config.custom!.fileInBranch, { repo: this.path, branch: branch, file: fileName, line: line });
46-
return Strings.interpolate(this.config.custom!.file, { repo: this.path, file: fileName, line: line });
44+
if (sha) return Strings.interpolate(this.config.urls!.fileInCommit, { repo: this.path, id: sha, file: fileName, line: line });
45+
if (branch) return Strings.interpolate(this.config.urls!.fileInBranch, { repo: this.path, branch: branch, file: fileName, line: line });
46+
return Strings.interpolate(this.config.urls!.file, { repo: this.path, file: fileName, line: line });
4747
}
4848
}

0 commit comments

Comments
 (0)