Fixed a bug in get_parents(...) that caused only the first commit to be updated.