Added test for getting all the commits to make sure it doesn't try and get repeat commits (unnecessary calls to the githubapi)
Added handling of getting the last commits and stopping querying githubapi