checkGitLastCommitHash function

Future<bool> checkGitLastCommitHash(
  1. String root
)

检查代码是否是最新

Implementation

Future<bool> checkGitLastCommitHash(String root) async {
  final localCommitHash = await getGitLastCommitHash(root);
  final remoteCommitHash = await getGitLastRemoteCommitHash(root);
  return localCommitHash == remoteCommitHash;
}