Title: .gitignore parsing: The parser skips multiple leading `/` · Issue #5070 · libgit2/libgit2 · GitHub
Open Graph Title: .gitignore parsing: The parser skips multiple leading `/` · Issue #5070 · libgit2/libgit2
X Title: .gitignore parsing: The parser skips multiple leading `/` · Issue #5070 · libgit2/libgit2
Description: Reproduction steps The parser skips multiple leading /, but it should only skip one Consider .gitignore file with the following content: //x.txt Expected behavior git_ignore_path_is_ignored("x.txt") returns false. Compare with output of ...
Open Graph Description: Reproduction steps The parser skips multiple leading /, but it should only skip one Consider .gitignore file with the following content: //x.txt Expected behavior git_ignore_path_is_ignored("x.txt"...
X Description: Reproduction steps The parser skips multiple leading /, but it should only skip one Consider .gitignore file with the following content: //x.txt Expected behavior git_ignore_path_is_ignored("x...
Opengraph URL: https://github.com/libgit2/libgit2/issues/5070
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":".gitignore parsing: The parser skips multiple leading `/`","articleBody":"### Reproduction steps\r\n\r\nThe parser skips multiple leading `/`, but it should only skip one\r\n\r\nConsider `.gitignore` file with the following content:\r\n```\r\n//x.txt\r\n```\r\n\r\n### Expected behavior\r\n\r\n`git_ignore_path_is_ignored(\"x.txt\")` returns false.\r\nCompare with output of `git check-ignore \"x.txt\"`.\r\n\r\n### Actual behavior\r\n\r\n`git_ignore_path_is_ignored(\"x.txt\")` returns true. \r\n\r\n### Version of libgit2 (release number or SHA1)\r\n\r\na904fc6d12ffc20aa1a238a78000921494222e89\r\n\r\n### Operating system(s) tested\r\n\r\nWindows","author":{"url":"https://github.com/tmat","@type":"Person","name":"tmat"},"datePublished":"2019-05-15T17:30:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5070/libgit2/issues/5070"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:000fad5d-cd7f-d724-1a46-7941fb1627aa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B180:2E1F49:4BA565C:62D1B8B:6A5D6479 |
| html-safe-nonce | 890e195192e9fe2aa923a490685c2e3eb365abf756b5326a9ec145dbcb20f4d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTgwOjJFMUY0OTo0QkE1NjVDOjYyRDFCOEI6NkE1RDY0NzkiLCJ2aXNpdG9yX2lkIjoiNjQxNzQyMDU1MDY5MzI4MjkzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dfb90125d8c1636843a01de78f8ad0f1dba2da90e68df91c81432ecbe064759d |
| hovercard-subject-tag | issue:444559070 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/libgit2/libgit2/5070/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f284809aa05d41c9e72cda301fe8b0e9e8e34feda9859e42446c4ee6f6c6f2ba/libgit2/libgit2/issues/5070 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f284809aa05d41c9e72cda301fe8b0e9e8e34feda9859e42446c4ee6f6c6f2ba/libgit2/libgit2/issues/5070 |
| og:image:alt | Reproduction steps The parser skips multiple leading /, but it should only skip one Consider .gitignore file with the following content: //x.txt Expected behavior git_ignore_path_is_ignored("x.txt"... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tmat |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/libgit2/libgit2 git https://github.com/libgit2/libgit2.git |
| octolytics-dimension-user_id | 394745 |
| octolytics-dimension-user_login | libgit2 |
| octolytics-dimension-repository_id | 901662 |
| octolytics-dimension-repository_nwo | libgit2/libgit2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 901662 |
| octolytics-dimension-repository_network_root_nwo | libgit2/libgit2 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width