Skip to content

Commit

Permalink
Merge pull request #2376 from carapace-sh/git-head-nospace
Browse files Browse the repository at this point in the history
git: ActionRefs - fix nospace for `HEAD~`
  • Loading branch information
rsteube authored May 6, 2024
2 parents 3828de5 + 2445f86 commit db6ff6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/actions/tools/git/ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func ActionRefs(refOption RefOption) carapace.Action {
}

if refOption.HeadCommits {
batch = append(batch, carapace.ActionValues("HEAD~"))
batch = append(batch, carapace.ActionValues("HEAD~").NoSpace('~'))
}

if refOption.Tags {
Expand Down

0 comments on commit db6ff6b

Please sign in to comment.