diff --git a/src/svnRepository.ts b/src/svnRepository.ts index ad274c1a..68d07428 100644 --- a/src/svnRepository.ts +++ b/src/svnRepository.ts @@ -294,7 +294,11 @@ export class Repository { const branchUrl = repoUrl + "/" + ref; - const switchBranch = await this.exec(["switch", branchUrl]); + try { + await this.exec(["switch", branchUrl]); + } catch (error) { + await this.exec(["switch", branchUrl, "--ignore-ancestry"]); + } this.resetInfo();