Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CodeEdit/Features/Git/Client/GitClient+Branches.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extension GitClient {

/// Get current branch
func getCurrentBranch() async throws -> GitBranch? {
let branchName = try await run("rev-parse --abbrev-ref HEAD").trimmingCharacters(in: .whitespacesAndNewlines)
let branchName = try await run("branch --show-current").trimmingCharacters(in: .whitespacesAndNewlines)
let components = try await run(
"for-each-ref --format=\"%(refname)|%(upstream:short)\" refs/heads/\(branchName)"
)
Expand Down