Исправление падения git-а
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
1.0.92
|
||||
1.0.93
|
||||
|
||||
@@ -26,6 +26,6 @@ using System.Runtime.InteropServices;
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.0.92")]
|
||||
[assembly: AssemblyFileVersion("1.0.92")]
|
||||
[assembly: AssemblyInformationalVersion("1.0.92")]
|
||||
[assembly: AssemblyVersion("1.0.93")]
|
||||
[assembly: AssemblyFileVersion("1.0.93")]
|
||||
[assembly: AssemblyInformationalVersion("1.0.93")]
|
||||
|
||||
@@ -200,7 +200,15 @@ namespace JiraTimeBot.RepositoryProviders
|
||||
|
||||
foreach (var branch in repo.Branches)
|
||||
{
|
||||
var commits = repo.Commits.QueryBy(new CommitFilter { IncludeReachableFrom = branch }).Where(c => c.Sha == commitSha);
|
||||
List<Commit> commits = new List<Commit>();
|
||||
try
|
||||
{
|
||||
commits = repo.Commits.QueryBy(new CommitFilter {IncludeReachableFrom = branch}).Where(c => c.Sha == commitSha).ToList();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!commits.Any())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user