From c84834fc33f798a5abb52bfbe8fcca44bf2fb135 Mon Sep 17 00:00:00 2001 From: John Wesley Walker III <81404201+jww3@users.noreply.github.com> Date: Tue, 12 Mar 2024 16:25:38 +0000 Subject: updated other version-specific logic --- dist/index.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'dist') diff --git a/dist/index.js b/dist/index.js index d66b9a7..42e0297 100644 --- a/dist/index.js +++ b/dist/index.js @@ -524,13 +524,7 @@ class GitCommandManager { branchList(remote) { return __awaiter(this, void 0, void 0, function* () { const result = []; - // Note, this implementation uses "rev-parse --symbolic-full-name" because the output from - // "branch --list" is more difficult when in a detached HEAD state. - // TODO(https://github.com/actions/checkout/issues/786): this implementation uses - // "rev-parse --symbolic-full-name" because there is a bug - // in Git 2.18 that causes "rev-parse --symbolic" to output symbolic full names. When - // 2.18 is no longer supported, we can switch back to --symbolic. - const args = ['rev-parse', '--symbolic-full-name']; + const args = ['rev-parse', '--symbolic']; if (remote) { args.push('--remotes=origin'); } -- cgit v1.2.3