Fix cloning with specific branch (#164619)

This commit is contained in:
Joyce Er
2022-10-25 15:27:41 -07:00
committed by GitHub
parent f5cbe7e391
commit 812c9bedf2

View File

@@ -457,7 +457,7 @@ export class Git {
command.push('--recursive');
}
if (options.ref) {
command.push('--branch', `'${options.ref}'`);
command.push('--branch', options.ref);
}
await this.exec(options.parentPath, command, {
cancellationToken,