Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's using it here on line 1042?

     git_config_pathname(&interpolated, key, value)


Yes but that's a general use function, it won't check for safe.directory inside of it


Right, all that does is turn paths like ~/foo into /home/<user>/foo. I’ve no idea why it even takes the key as an argument.


It's so it can print an error referring to the key if there was a problem parsing.


Oh, that makes sense.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: