aboutsummaryrefslogtreecommitdiffstats
path: root/config/refspec_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1165 from seletskiy/push-pruneMáximo Cuadros2019-07-261-0/+9
|\ | | | | Remote: add Prune option to PushOptions
| * add Prune option to PushOptionsStanislav Seletskiy2019-07-251-0/+9
| | | | | | | | Signed-off-by: Stanislav Seletskiy <s.seletskiy@gmail.com>
* | fix wildcard handling in RefSpec matchingMike Lundy2019-06-041-8/+59
|/ | | | | | | | | | | 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>
* Add more unit tests for RefSpecAlan Cabrera2018-03-141-0/+13
| | | | | | Need this to get better code coverage of the bug fix. Signed-off-by: Alan Cabrera <adc@toolazydogs.com>
* Fix RefSpec.Src()Alan Cabrera2018-03-141-0/+6
| | | | | | | | | Previously, the Src() function was assuming there are no “+” characters in the refspec src and erroneously used the strings.Index() function to compute the start index of src in the refspec. This change now uses the IsForceUpdate() method to decide how to elide the force update token. Signed-off-by: Alan Cabrera <adc@toolazydogs.com>
* project: move imports from srcd.works to gopkg.inAntonio Jesus Navarro Perez2017-03-071-1/+1
| | | | To be able to fix #261 we will move again to gopkg.in before v4 stable release.
* config: RefSpec.Validate returning errors and doc (Fixes #232)Máximo Cuadros2017-01-311-7/+10
|
* new srcd.works/go-git.v4 pathMáximo Cuadros2017-01-301-1/+1
|
* config: support delete refspecs (IsDelete). (#166)Santiago M. Mola2016-12-081-1/+28
|
* new plumbing package (#118)Máximo Cuadros2016-11-081-10/+10
| | | * plumbing: now core was renamed to core, and formats and clients moved inside
* Remote.Fetch multiple RefSpec supportMáximo Cuadros2016-08-221-0/+10
|
* Remote.Fetch base on RefSpec, improvement of the responsabilities separationMáximo Cuadros2016-08-191-0/+69