Exemplo n.º 1
0
        public static bool LocateRepository(LocateRepository task)
        {
            try
            {
                task.Id = GitOperations.LocateRepository(task.Directory);
            }
            catch (Exception e)
            {
#if NET461
                foreach (var message in TaskImplementation.GetLog())
                {
                    task.Log.LogMessage(message);
                }
#endif
                task.Log.LogWarningFromException(e, showStackTrace: true);

                return(true);
            }

            if (task.Id == null)
            {
                task.Log.LogWarning(Resources.UnableToLocateRepository, task.Directory);
            }

            return(!task.Log.HasLoggedErrors);
        }
Exemplo n.º 2
0
        public override bool Execute()
        {
            try
            {
                return(TaskImplementation.LocateRepository(this));
            }
            catch
            {
#if NET461
                foreach (var message in TaskImplementation.GetLog())
                {
                    Log.LogMessage(message);
                }
#endif
                throw;
            }
        }
 public override bool Execute() => TaskImplementation.LocateRepository(this);
 public override bool Execute() => TaskImplementation.GetUntrackedFiles(this);
Exemplo n.º 5
0
 public override bool Execute() => TaskImplementation.GetSourceRevisionId(this);
 public override bool Execute() => TaskImplementation.GetRepositoryUrl(this);
Exemplo n.º 7
0
 public override bool Execute() => TaskImplementation.GetSourceRoots(this);