Six top-level folders in a Git repo with the same name
2 by vietjtnguyen | 1 comments on Hacker News.
https://ift.tt/33uaZN8 https://ift.tt/3o3cKrJ I was surprised when someone pushed commits to an internal repo showing folders with the same name. Leading and trailing whitespace is allowed for a folder name and git respects this. Github and GitLab will both render the full folder name in the DOM but don't escape it with ` ` or use the `white-space: pre` [1] CSS property (TIL) which leads to whitespace collapse. Interestingly the tooltip on Github shows the full name but not on GitLab. To me it's another example of how difficult it is to anticipate the full space of user input. [1]: https://ift.tt/30UIQgE

Post a Comment

Previous Post Next Post