fix: add '--' to checkout command to avoid ambiguity (#1051)

* fix: add '--' to checkout command to avoid ambiguity

Signed-off-by: Kenji Miyake <[email protected]>

* Update src/git-command-manager.ts

Co-authored-by: Peter Evans <[email protected]>

Co-authored-by: Peter Evans <[email protected]>
This commit is contained in:
Kenji Miyake
2022-01-31 09:49:59 +09:00
committed by GitHub
co-authored by Peter Evans
parent 3f60247108
commit f22a7da129
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -650,6 +650,8 @@ class GitCommandManager {
else {
args.push(ref);
}
// https://github.com/git/git/commit/a047fafc7866cc4087201e284dc1f53e8f9a32d5
args.push('--');
yield this.exec(args);
});
}
+2
View File
@@ -32,6 +32,8 @@ export class GitCommandManager {
} else {
args.push(ref)
}
// https://github.com/git/git/commit/a047fafc7866cc4087201e284dc1f53e8f9a32d5
args.push('--')
await this.exec(args)
}