Use communicate() in get_rev_list()

This should allow get_rev_list() to work for submodules