Merge pull request #206 from mattn/fix/git-ls-cat-path-trim

git: don't trim whitespace off paths in 'ls' and 'cat'
This commit is contained in:
mattn
2026-08-28 15:50:20 +00:00
committed by GitHub
+2 -2
View File
@@ -631,7 +631,7 @@ aside from those, there is also:
return fmt.Errorf("no HTTP git URLs found for repository")
}
path := strings.TrimSpace(args.Get(1))
path := args.Get(1)
ref := strings.TrimSpace(c.String("ref"))
var lastErr error
@@ -701,7 +701,7 @@ aside from those, there is also:
return fmt.Errorf("no HTTP git URLs found for repository")
}
path := strings.TrimSpace(args.Get(1))
path := args.Get(1)
ref := strings.TrimSpace(c.String("ref"))
var lastErr error