docs: def repo_commits(self, repo):
          """ Get the commit IDs for all of the branches of a repository """
          commits = []
          try:
              status = self.path_dirs.apply_path(repo)
              # switch to directory where repo will be cloned to
              if status[0]:
                  cwd = status[1]
              else:
                  self.logger.error('apply_path failed. Exiting repo_commits with'
                                    ' status: ' + str(status))
                  return status
  
              status = self.repo_branches(repo)
              if status[0]:
                  branches = status[1]
                  for branch in branches:
                      try:
                          branch_output = check_output(shlex
                                                       .split('git rev-list origin/' +
                                                              branch),
                                                       stderr=STDOUT,
                                                       close_fds=True).decode('utf-8')
                          branch_output = branch_output.split('\n')[:-1]
                          branch_output += ['HEAD']
                          commits.append((branch, branch_output))
                      except Exception as e:  # pragma: no cover
                          self.logger.error('repo_commits failed with error: ' +
                                            str(e) + ' on branch: ' +
                                            str(branch))
                          status = (False, e)
                          return status
              else:
                  self.logger.error('repo_branches failed. Exiting repo_commits'
                                    ' with status: ' + str(status))
                  return status
  
              chdir(cwd)
              status = (True, commits)
          except Exception as e:  # pragma: no cover
              self.logger.error('repo_commits failed with error: ' + str(e))
              status = (False, e)
  
          return status