Skip to content

Commit

Permalink
Merge pull request #381 from x-motemen/fix-local-repository-root
Browse files Browse the repository at this point in the history
ghq rm to support bare option
  • Loading branch information
Songmu authored Apr 4, 2024
2 parents 7ecb040 + 913d312 commit 2fd7bbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd_rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand All @@ -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
}
Expand Down

0 comments on commit 2fd7bbe

Please sign in to comment.