Pull перед работой

This commit is contained in:
Danil Kislov
2019-12-11 09:12:20 +03:00
parent 27cf8416aa
commit 2dc378932a
3 changed files with 40 additions and 33 deletions
+1 -1
View File
@@ -1 +1 @@
1.0.70 1.0.71
@@ -53,9 +53,16 @@ namespace JiraTimeBot.Mercurial
var repo = new Repository(repoDirectory); var repo = new Repository(repoDirectory);
if (settings.PullBeforeProcess) if (settings.PullBeforeProcess)
{
try
{ {
repo.Pull(); repo.Pull();
} }
catch (Exception ex)
{
_log?.Trace($" - Не получается сделать pull для репозитория: {directoryInfo.Name} - {ex.Message}");
}
}
var logCommand = new LogCommand var logCommand = new LogCommand
{ {
+3 -3
View File
@@ -26,6 +26,6 @@ using System.Runtime.InteropServices;
// //
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.70")] [assembly: AssemblyVersion("1.0.71")]
[assembly: AssemblyFileVersion("1.0.70")] [assembly: AssemblyFileVersion("1.0.71")]
[assembly: AssemblyInformationalVersion("1.0.70")] [assembly: AssemblyInformationalVersion("1.0.71")]