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

My guess is that it’s due to git looking at its own base name to figure out which command it’s supposed to run as, kind of like busybox does.


Fun anecdote about that: at work we added a wrapper around nvcc to point it at the right compiler, and renamed the original "nvcc" binary to ".nvcc-wrapped". But nvcc looks at argv[0] to print out its name in the --version output, and it truncates anything after a period (presumably to handle things like "nvcc.exe"?). And CMake's CUDA detection looks at nvcc --version. So CMake went down a really weird path where it knew that nvcc existed but didn't really believe it was nvcc, which was extremely confusing until I looked at some log output and went "wait, why isn't nvcc printing its own name".


Yep. Source of that error message. https://github.com/git/git/blob/master/git.c#L879




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

Search: