mirror of
https://github.com/x-motemen/ghq.git
synced 2026-09-10 07:26:27 -04:00
ghq rm to support bare option
This commit is contained in:
parent
7ecb0407bd
commit
913d312801
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue