1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-04 03:48:07 +02:00

return on error when merging branches

This commit is contained in:
Jesse Duffield 2018-08-07 14:08:56 +10:00
parent 9bfaa9f62c
commit ab03902d08

View File

@ -205,7 +205,10 @@ func branchAlreadyStored(branchLine string, branches []Branch) bool {
// directory i.e. things we've fetched but haven't necessarily checked out.
// Worth mentioning this has nothing to do with the 'git merge' operation
func getAndMergeFetchedBranches(branches []Branch) []Branch {
rawString, _ := runDirectCommand(getHeadsCommand)
rawString, err := runDirectCommand(getHeadsCommand)
if err != nil {
return branches
}
branchLines := splitLines(rawString)
for _, line := range branchLines {
if branchAlreadyStored(line, branches) {