gitChecks method

bool gitChecks(
  1. String projectRootPath
)

Implementation

bool gitChecks(String projectRootPath) {
  final git = Git(projectRootPath);
  final usingGit = git.usingGit;
  if (usingGit) {
    print('Found git project.');
    // we do a premptive git pull as we won't be able to do a push
    // at the end if we are behind head.
    if (git.hasRemote) {
      git.pull();
    } else {
      print(orange('Skipping git pull as no remote has been defined.'));
    }

    // print('Checking files are committed.');
    // git.checkAllFilesCommited();
  }

  return usingGit;
}