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:
Ladislau Szomoru 2022-12-16 13:29:32 +01:00 committed by GitHub
parent 983b06e9bf
commit a56c38c075
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}