aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-04 08:25:05 +0800
committerGravatar Runxi Yu2026-03-04 08:25:05 +0800
commit34d47f9e0cf66904432a3c774707b4773273ef4f (patch)
treef639f1d5ab04ae10805901034517f51559639e7f /cmd
parentrefstore/packed: Use os.Root (diff)
signatureNo signature
*: gofumpt
Diffstat (limited to 'cmd')
-rw-r--r--cmd/show-object/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/show-object/main.go b/cmd/show-object/main.go
index 47326269..6d27ffad 100644
--- a/cmd/show-object/main.go
+++ b/cmd/show-object/main.go
@@ -27,7 +27,7 @@ func main() {
}
}
-func run(repoPath *string, name *string) error {
+func run(repoPath, name *string) error {
root, err := os.OpenRoot(*repoPath)
if err != nil {
return fmt.Errorf("open repo root: %w", err)