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:
parent
9bfaa9f62c
commit
ab03902d08
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user