mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Git - Do not pull before checkout when checking out detached (#169387)
Do not pull before checkout when checking out detached
This commit is contained in:
parent
983b06e9bf
commit
a56c38c075
|
@ -1580,7 +1580,7 @@ export class Repository implements Disposable {
|
|||
|
||||
await this.run(operation,
|
||||
async () => {
|
||||
if (opts?.pullBeforeCheckout) {
|
||||
if (opts?.pullBeforeCheckout && !opts?.detached) {
|
||||
try {
|
||||
await this.fastForwardBranch(treeish);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue