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

Fix RefSpec.Src() #783

Merged
merged 2 commits into from
Mar 14, 2018
Merged

Fix RefSpec.Src() #783

merged 2 commits into from
Mar 14, 2018

Conversation

maguro
Copy link
Contributor

@maguro maguro commented Mar 14, 2018

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 [email protected]

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 <[email protected]>
Need this to get better code coverage of the bug fix.

Signed-off-by: Alan Cabrera <[email protected]>
@maguro
Copy link
Contributor Author

maguro commented Mar 14, 2018

So, I don't have karma to merge the request. Can someone do that for me?

@orirawlings orirawlings merged commit a39fae6 into src-d:master Mar 14, 2018
@maguro
Copy link
Contributor Author

maguro commented Mar 15, 2018

May thanks!

@maguro maguro deleted the refspec-src branch March 15, 2018 00:14
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.

2 participants