test/git*.jl: don't use `echo` to read-and-write from processes.

This is one of those areas where our current process I/O stuff is
very awkward. Making write_and_readchomp an available function is
not a good solution either. The whole thing needs some design work.