-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gitlab refs compatibility #160
Comments
I think it's a good idea. |
NB GitHub also has refs of the format |
I was going to say that skipping unknown stuff would be a bad idea, because it would make the |
And for backward compatibility, that would be better. Maybe we could start a list of "things to do for next major version". |
I agree it is better to do it in a major version, as it could break things for some people if they expect gitlib to ignore those references. |
When using GitLab CI, a couple of custom refs are created in the GIT repository by GitLab to prevent errors with force-pushes and such (as far as I know "refs/pipelines/" and "refs/merge-requests/").
The problem is that this library checks every ref type in the repository and throws a RuntimeException if it doesn't recognize one:
gitlib/src/Gitonomy/Git/ReferenceBag.php
Lines 352 to 376 in b4620be
I can make a pull request to fix this, but wouldn't it be better to ignore any unknown reference instead of having to manually include each of them in this file?
The text was updated successfully, but these errors were encountered: