diff options
Diffstat (limited to 'src/marlin.web/Services/VersionControlSyncService.cs')
| -rw-r--r-- | src/marlin.web/Services/VersionControlSyncService.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/marlin.web/Services/VersionControlSyncService.cs b/src/marlin.web/Services/VersionControlSyncService.cs index cd75ed6..8f2046e 100644 --- a/src/marlin.web/Services/VersionControlSyncService.cs +++ b/src/marlin.web/Services/VersionControlSyncService.cs @@ -142,6 +142,7 @@ public class VersionControlSyncService : BackgroundService await dbContext.SourceCommits .Include(x => x.Branches) .Where(x => !x.Branches.Any()) + .Where(x => !dbContext.Jobs.Any(j => j.CommitId == x.Id)) .ExecuteDeleteAsync(ct); } |
