Skip to content

Conversation

skshetry
Copy link
Collaborator

In a freshly initialized Git repo with no commits, there is no HEAD, which caused dvc data status to skip showing committed changes.

We now provide empty DataIndex in place of Git's HEAD to diff and coTests have been updated to cover this case.mpare.

Tests have been updated to cover this case.

In a freshly initialized Git repo with no commits, there is no `HEAD`,
which caused `dvc data status` to skip showing committed changes.

We now provide empty `DataIndex` in place of Git's `HEAD` to `diff` and `coTests have been updated to cover this case.mpare`.

Tests have been updated to cover this case.
@github-project-automation github-project-automation bot moved this to Backlog in DVC Jun 26, 2025
@skshetry skshetry removed this from DVC Jun 26, 2025
@skshetry skshetry added this to DVC Jun 26, 2025
@skshetry skshetry moved this to Review In Progress in DVC Jun 26, 2025
@skshetry skshetry added the bugfix fixes bug label Jun 26, 2025
@skshetry skshetry changed the title data status: show committed changes in a new Git repository fix(data status): show committed changes in a new Git repository Jun 26, 2025
@skshetry skshetry self-assigned this Jun 26, 2025
@skshetry skshetry enabled auto-merge (squash) June 26, 2025 11:01
@skshetry skshetry merged commit e278c9c into main Jun 26, 2025
40 checks passed
@skshetry skshetry deleted the fix-new-repo branch June 26, 2025 11:11
@github-project-automation github-project-automation bot moved this from Review In Progress to Done in DVC Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix fixes bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant