4 ms·
Does this mean a "git pull" is vulnerable to this, or does git not rely on patch?
by gtrubetskoy 9y ago
Does this mean a "git pull" is vulnerable to this, or does git not rely on patch?
- Jasper_ 9y agogit's delta pack format which used on the wire is not based on patch. This would only affect "git patch" and derivatives like "git am".
- eridius 9y agoDoes `git apply` actually farm out to /usr/bin/patch? I kind of assumed it reimplemented the patching itself.
- LukeShu 9y agoYou're correct, git has its own patch implementation (plus, it's a bit stricter than the patch program, because it doesn't have to deal with various patch formats--only "unified" patches).
- gh02t 9y agoI believe git uses its own implementation for applying deltas sucked down by `git pull` https://github.com/git/git/blob/master/patch-delta.c There's also `git apply` that applies user supplied patchfiles but if I'm reading this correctly it also uses an internal implementation: https://github.com/git/git/blob/master/apply.c