Commit e11a41c

Anton Medvedev <anton@medv.io>
2025-12-07 19:52:24
Trim `.git` suffix from flag name in `main.go`
1 parent 2943298
Changed files (1)
main.go
@@ -6,6 +6,7 @@ import (
 	"path/filepath"
 	"regexp"
 	"runtime/pprof"
+	"strings"
 
 	"github.com/antonmedv/gitmal/pkg/git"
 
@@ -97,6 +98,7 @@ func main() {
 
 	if flagName == "" {
 		flagName = filepath.Base(input)
+		flagName = strings.TrimSuffix(flagName, ".git")
 	}
 
 	themeColor, ok := themeStyles[flagTheme]