From 913d3128013df928711d0238fc6da70967621cef Mon Sep 17 00:00:00 2001 From: Songmu Date: Thu, 4 Apr 2024 11:28:15 +0900 Subject: [PATCH] ghq rm to support bare option --- cmd_rm.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd_rm.go b/cmd_rm.go index f2bdcbc..5db158e 100644 --- a/cmd_rm.go +++ b/cmd_rm.go @@ -12,6 +12,7 @@ func doRm(c *cli.Context) error { name = c.Args().First() dry = c.Bool("dry-run") w = c.App.Writer + bare = c.Bool("bare") ) if name == "" { @@ -23,7 +24,7 @@ func doRm(c *cli.Context) error { return err } - localRepo, err := LocalRepositoryFromURL(u) + localRepo, err := LocalRepositoryFromURL(u, bare) if err != nil { return err }