From c28661c916186892638a3848e12f24ddd70cafb8 Mon Sep 17 00:00:00 2001 From: Kenji Miyake Date: Sat, 29 Jan 2022 17:34:55 +0900 Subject: [PATCH] fix: add '--' to checkout command to avoid ambiguity Signed-off-by: Kenji Miyake --- dist/index.js | 2 ++ src/git-command-manager.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dist/index.js b/dist/index.js index b2024d0..77ba7a1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -650,6 +650,8 @@ class GitCommandManager { else { args.push(ref); } + // https://github.com/git/git/commit/a047fafc7866cc4087201e284dc1f53e8f9a32d5 + args.push('--'); yield this.exec(args); }); } diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index 8dc6a9b..08b2f3d 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -32,6 +32,8 @@ export class GitCommandManager { } else { args.push(ref) } + // https://github.com/git/git/commit/a047fafc7866cc4087201e284dc1f53e8f9a32d5 + args.push('--'); await this.exec(args) }