sha1_name.c: get_sha1_1() takes lookup flags