Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

fix wildcard handling in RefSpec matching #1160

Merged
merged 1 commit into from
Jun 17, 2019

Conversation

novas0x2a
Copy link
Contributor

  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.

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 <[email protected]>
@jfontan
Copy link
Contributor

jfontan commented Jun 10, 2019

I believe that windows tests are failing because a network problem. @mcuadros can you restart the test?

@mcuadros mcuadros merged commit a35ce6e into src-d:master Jun 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants