aboutsummaryrefslogtreecommitdiffstats
path: root/worktree.go
diff options
context:
space:
mode:
authorMike Lundy <mike@fluffypenguin.org>2019-06-03 18:19:09 -0700
committerMike Lundy <mike@fluffypenguin.org>2019-06-04 09:25:06 -0700
commitaf3226f6522d5545c3aa546eb7c99ec131b38302 (patch)
tree7ed1e78a8a702d6b14e8b3713b8aedf8d7300878 /worktree.go
parent37b80726760d2e0b17dfa437f3162dd930590ecf (diff)
downloadgo-git-af3226f6522d5545c3aa546eb7c99ec131b38302.tar.gz
fix wildcard handling in RefSpec matching
1) The guard logic here was inverted, resulting in an always-false branch, which meant that the suffix after the wildcard was incorrectly ignored. 2) Wildcards were treated as 1-or-more matches, but git treats them as 0-or-more. This change aligns go-git with git, but represents a bit of a breaking change for go-git. Signed-off-by: Mike Lundy <mike@fluffypenguin.org>
Diffstat (limited to 'worktree.go')
0 files changed, 0 insertions, 0 deletions