Skip to content

Git fetcher: Improve error message for untracked files (backport #12870)#12884

Merged
edolstra merged 3 commits into2.28-maintenancefrom
mergify/bp/2.28-maintenance/pr-12870
Apr 2, 2025
Merged

Git fetcher: Improve error message for untracked files (backport #12870)#12884
edolstra merged 3 commits into2.28-maintenancefrom
mergify/bp/2.28-maintenance/pr-12870

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Apr 2, 2025

Motivation

It now says:

error: Path 'foo/bar' in the repository "/path/to/repo" is not tracked by Git.

       To make it visible to Nix, run:

       git -C "/path/to/repo" add "foo/bar"

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.


This is an automatic backport of pull request #12870 done by [Mergify](https://mergify.com).

@mergify mergify bot requested a review from edolstra as a code owner April 2, 2025 19:15
@mergify mergify bot added automatic backport This PR is a backport produced by automation (does not trigger backporting) merge-queue labels Apr 2, 2025
@github-actions github-actions bot added the fetching Networking with the outside (non-Nix) world, input locking label Apr 2, 2025
@edolstra edolstra enabled auto-merge April 2, 2025 19:27
@mergify
Copy link
Copy Markdown
Contributor Author

mergify bot commented Apr 2, 2025

This pull request has been removed from the queue for the following reason: pull request dequeued.

Pull request #12884 has been dequeued. The pull request could not be merged. This could be related to an activated branch protection or ruleset rule that prevents us from merging. (details: Required status check "tests on ubuntu" is in progress.)

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.
If you do update this pull request, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio requeue comment.

@edolstra edolstra merged commit 9e362f0 into 2.28-maintenance Apr 2, 2025
25 of 27 checks passed
@edolstra edolstra deleted the mergify/bp/2.28-maintenance/pr-12870 branch April 2, 2025 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automatic backport This PR is a backport produced by automation (does not trigger backporting) fetching Networking with the outside (non-Nix) world, input locking merge-queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants