sha1-name.c: remove implicit dependency on the_index