Skip to content
GitLab
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Get free trial
  • TortoiseGitTortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #3813

Filter is checking for '%' incorrectly.

The filter code for checking for a '%' in src/libgit2/filter-filter.c uses the following code which is incorrect:

ssize_t foundPercentage = git_buf_find(buf, '%');
if (foundPercentage) {

The git_buf_find() function returns a -1 if it does not find the character and not a 0 as the existing code assumes.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking