[fix] correct the commits_between method in GitAdapter