Skip to content

fix(git): disambiguate file paths in addition history lookup - #2373

Open
lfhwnqe wants to merge 1 commit into
changesets:mainfrom
lfhwnqe:fix/git-log-disambiguate-file-paths
Open

lfhwnqe wants to merge 1 commit into
changesets:mainfrom
lfhwnqe:fix/git-log-disambiguate-file-paths

Conversation

@lfhwnqe

@lfhwnqe lfhwnqe commented Nov 10, 2026

Copy link
Copy Markdown

Summary

When a file and a ref share the same name, Git cannot interpret the final argument to git log --follow as a path. Insert the path separator so addition-history lookup works for that filename.

Validation

The regression using a branch and file named a.js fails on main. All 37 Git package tests, targeted lint and git diff --check pass. Includes a patch changeset.

AI disclosure: OpenAI Codex assisted with implementation and verification.

@netlify

netlify Bot commented Nov 10, 2026

Copy link
Copy Markdown

👷 Deploy request for changesets pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 447d6a7

@changeset-bot

changeset-bot Bot commented Nov 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 447d6a7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@changesets/git Patch
@changesets/apply-release-plan Patch
@changesets/cli Patch
@changesets/read Patch
@changesets/release-utils Patch
@changesets/get-release-plan Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov

codecov Bot commented Nov 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.47%. Comparing base (2f6995d) to head (447d6a7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2373   +/-   ##
=======================================
  Coverage   87.47%   87.47%           
=======================================
  Files          78       78           
  Lines        2971     2971           
  Branches      853      851    -2     
=======================================
  Hits         2599     2599           
  Misses        337      337           
  Partials       35       35           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
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