Skip to content

Commit 605e7bd

Browse files
working version with minor changes
1 parent 9cc77e0 commit 605e7bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"os"
77
"os/exec"
88
"strings"
9+
"time"
910

1011
"github.com/charmbracelet/bubbles/list"
1112
"github.com/charmbracelet/bubbles/spinner"
@@ -88,6 +89,7 @@ func initialModel() model {
8889

8990
func fetchBranches() tea.Cmd {
9091
return func() tea.Msg {
92+
time.Sleep(1 * time.Second)
9193
cmd := exec.Command("git", "branch", "-a")
9294
var outb, errb bytes.Buffer
9395
cmd.Stdout = &outb

0 commit comments

Comments
 (0)