public async Task UpdateTemplateAsync(string repoPath) { if (_cache == null) { await BuildCacheAsync(); } await _gitClient.MergeAsync(repoPath); var template = _cache.SingleOrDefault(t => PathUtils.IsSameDirectory(t.LocalFolderPath, repoPath)); if (template != null) { template.ClonedLastUpdate = await _gitClient.GetLastCommitDateAsync(template.LocalFolderPath); } }