in src/dal/cvsproviderproxy.ts [130:144]
public async getGitBranch(): Promise<string> {
const results: string[] = [];
for (const provider of this.actualProviders) {
if (provider instanceof GitProvider) {
results.push(await provider.getRepoBranchName());
}
}
if (results.length === 0) {
throw new Error("No branch name was collected!");
} else if (results.length === 1 || this.isAllElementsTheSame(results)) {
return results[0];
} else {
throw new Error("There are more then one git branch, this case is currently unsupported.");
}
}