Exemplo n.º 1
0
 private protected override void Execute(GitRepository repository)
 {
     RepositoryId     = repository.GitDirectory;
     WorkingDirectory = repository.WorkingDirectory;
     Url        = GitOperations.GetRepositoryUrl(repository, RemoteName, Log.LogWarning);
     Roots      = GitOperations.GetSourceRoots(repository, RemoteName, Log.LogWarning);
     RevisionId = repository.GetHeadCommitSha();
 }
Exemplo n.º 2
0
 public static bool GetRepositoryUrl(GetRepositoryUrl task) =>
 Execute(task, (repo, t) =>
 {
     t.Url = GitOperations.GetRepositoryUrl(repo, t.RemoteName);
 });