Skip to content

Commit

Permalink
Merge pull request #2226 from rsteube/git-check-args
Browse files Browse the repository at this point in the history
git: check args
  • Loading branch information
rsteube authored Feb 6, 2024
2 parents 1175874 + 7176528 commit 37877a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completers/git_completer/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func init() {
})

carapace.Gen(rootCmd).PreRun(func(cmd *cobra.Command, args []string) {
if cmd, _, _ := rootCmd.Find(args); cmd == rootCmd {
if cmd, _, _ := rootCmd.Find(args); cmd == rootCmd && len(args) > 0 {
carapace.LOG.Println("adding aliases")
addAliasCompletion(args)
addOtherCommands()
Expand Down

0 comments on commit 37877a0

Please sign in to comment.