It's slightly more complicated than that. The `git` command line itself was done in shell. Initially, `git foo` just ran `git-foo-script`, and then those were also written in shell. But the actual sha1 and packfile stuff was always in C from the beginning.
Source: https://git.kernel.org/pub/scm/git/git.git/commit/git?h=v0.9...