use xmalloc in git.c and help.c