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

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
This commit is contained in:
Kenji Miyake 2022-01-29 17:34:55 +09:00
parent 3f60247108
commit c28661c916
2 changed files with 4 additions and 0 deletions

2
dist/index.js vendored
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);
});
}

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