-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
With Custom Repo when Check remote
is disabled the link generated is always with the commit ID in URL
#267
Comments
Upon looking at the code, may the below be a fix? Location GitLink/src/main/kotlin/uk/co/ben_gibson/git/link/pipeline/middleware/GenerateUrl.kt Line 48 in 6cfac49
change the condition :
To may be:
|
Hi, @ben-gibson, Any ideas to fix this locally as an interim measure? |
Sorry for the delayed response, I don't have my own laptop right now. By unchecking the The only work around that I know of would be to re-enable the check remote option for now. |
Thank you! Acknowledge.
Additionally:Fallback branch: Although the above is completely customised for my requirements. |
My remote is Gerrit for review purposes, however, when I generate the link, I want it to point to the GitLab repo; Hence I have a custom domain configuration.
Since my repo is large, I have disabled the
Check remote
as recommended by the plugin.But with the above changes, The link generated by
Open in GitlabVMW
(GitlabVMW is my custom domain configuration which is described below) will always have a commit ID in the file path.This commit ID will not exist in remote since the commit IDs will be different for Gerrit and Gitlab; Making the link 404.
Eg link generated:
https://gitlab.eng.vmware.com/core-build/repo/-/blob/0361d35bb144cdeaf534a2b1dc03fd19d6af23e5/File.java#L116-L116
I think this is a bug that has to do with the
Check remote
feature.My custom domain configuration is as follows:
Am I missing anything or can this be fixed?
The text was updated successfully, but these errors were encountered: