Skip to content

Audit/git drs#236

Open
matthewpeterkort wants to merge 3 commits into
developmentfrom
audit/git-drs
Open

Audit/git drs#236
matthewpeterkort wants to merge 3 commits into
developmentfrom
audit/git-drs

Conversation

@matthewpeterkort

Copy link
Copy Markdown
Contributor

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eb5dfd531a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread cmd/push/main.go
return fmt.Errorf("failed to resolve pushed paths: %w", err)
}
if _, err := drsdelete.ReconcileCommittedDeletes(ctx, drsClient, deleteRefs, myLogger); err != nil {
lfsFiles, err := lfs.GetLfsFilesForRefPaths("HEAD", pushedPaths, myLogger)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Include unchanged LFS pointers in push preparation

When the branch has an upstream, listRefUpdatePaths returns only paths changed between the upstream and HEAD, so this call scans only those changed paths for LFS pointers. If a user pushes the branch to a fresh DRS remote (or retries after metadata/payload upload was missed) while HEAD contains unchanged LFS pointer files, those objects are skipped entirely before git push, leaving the pushed commit referencing DRS payloads that were never registered/uploaded to that remote; the previous GetAllLfsFiles(..., []string{"HEAD"}, ...) path covered all LFS pointers in HEAD.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant