Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src/git-command-manager.ts
diff options
context:
space:
mode:
authorJohn Wesley Walker III <81404201+jww3@users.noreply.github.com>2024-03-12 16:25:38 +0000
committerJohn Wesley Walker III <81404201+jww3@users.noreply.github.com>2024-03-12 16:25:38 +0000
commitc84834fc33f798a5abb52bfbe8fcca44bf2fb135 (patch)
tree875140d7749634434ff591ebfc2c0907a85f15a8 /src/git-command-manager.ts
parent3f2ac68787b636cd84ca3d2cd710454795b96c54 (diff)
updated other version-specific logic
Diffstat (limited to 'src/git-command-manager.ts')
-rw-r--r--src/git-command-manager.ts11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts
index 0adc732..38783e9 100644
--- a/src/git-command-manager.ts
+++ b/src/git-command-manager.ts
@@ -111,16 +111,7 @@ class GitCommandManager {
async branchList(remote: boolean): Promise<string[]> {
const result: string[] = []
-
- // 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')
} else {