Work workspace with runs, change and facts tabs; vim keys; responsive Board; theme file
This commit is contained in:
@@ -10,6 +10,7 @@ package main
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -77,6 +78,9 @@ func worktreeDiff(dir, base string) (string, error) {
|
||||
if base == "" {
|
||||
base = "main"
|
||||
}
|
||||
if st, err := os.Stat(dir); err != nil || !st.IsDir() {
|
||||
return "", fmt.Errorf("the task's folder %s no longer exists, so there is nothing to compare", dir)
|
||||
}
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
|
||||
defer cancel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user