mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-15 01:34:26 +02:00
Fix the CurrentBranchName function
The function would return "head/branchname" when there was either a tag or a remote with the same name. While fixing this we slightly change the semantic of the function (and of determineCheckedOutBranchName, which calls it): for a detached head it now returns an empty string rather than the commit hash. I actually think this is better.
This commit is contained in:
@ -26,7 +26,7 @@ var DoNotShowBranchMarkerForHeadCommit = NewIntegrationTest(NewIntegrationTestAr
|
||||
// Check that the local commits view does show a branch marker for the head commit
|
||||
t.Views().Commits().
|
||||
Lines(
|
||||
Contains("CI * three"), // don't want the star here
|
||||
Contains("CI three"),
|
||||
Contains("CI two"),
|
||||
Contains("CI branch1 one"),
|
||||
)
|
||||
|
Reference in New Issue
Block a user