go-scm icon indicating copy to clipboard operation
go-scm copied to clipboard

fix: escaping to git ref in path not working

Open chamhaw opened this issue 2 years ago • 3 comments

It seems an inadvertent mistake for escaping.

chamhaw avatar Feb 08 '23 08:02 chamhaw

Great catch. I feel like there may be one more bug fix needed. Once we properly escape the reference it would prevent the subsequent scm.TrimRef call from working properly. I'm not sure if / how this would manifest into a bug, but it would be great to do some more research on this and maybe get some unit tests for the different scenarios. cc @d1wilko @tphoney

bradrydzewski avatar Feb 08 '23 14:02 bradrydzewski

Can this bug be fixed? @bradrydzewski @d1wilko @tboerger

chamhaw avatar Apr 07 '23 11:04 chamhaw

@chamhaw this needs to be addressed before we can get this merged

Once we properly escape the reference it would prevent the subsequent scm.TrimRef call from working properly

I think it is a simple order of operations issue. trim before you encode and that probably resolves the comment.

bradrydzewski avatar Apr 07 '23 14:04 bradrydzewski