Skip to content

Commit

Permalink
Merge pull request #163 from Nordix/propose-delete-cache
Browse files Browse the repository at this point in the history
Propose delete cache updated when package revision is deleted
  • Loading branch information
nephio-prow[bot] authored Dec 18, 2024
2 parents 40d57bb + 44c7f2a commit 22fcdad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ func (r *gitRepository) DeletePackageRevision(ctx context.Context, old repositor
if err := r.pushAndCleanup(ctx, refSpecs); err != nil {
return fmt.Errorf("failed to update git references: %v", err)
}

return nil
}

Expand All @@ -524,6 +525,8 @@ func (r *gitRepository) removeDeletionProposedBranchIfExists(ctx context.Context
return err
}
}
delete(r.deletionProposedCache, deletionProposedBranch)

return nil
}

Expand Down

0 comments on commit 22fcdad

Please sign in to comment.