Skip to content

Fix no-HEAD handling in iter_gitstatus() #681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2024
Merged

Fix no-HEAD handling in iter_gitstatus() #681

merged 1 commit into from
May 14, 2024

Conversation

mih
Copy link
Member

@mih mih commented May 14, 2024

Previously, the implementation would only report on untracked content in work trees of repositories with no HEAD commit. This led to staged changes not being reported.

The new implementation detects a no-HEAD situation and compares to the PRE_INIT_COMMIT_SHA.

A test is added.

Closes #680

Previously, the implementation would only report on untracked content
in work trees of repositories with no HEAD commit. This led to
staged changes not being reported.

The new implementation detects a no-HEAD situation and compares
to the PRE_INIT_COMMIT_SHA.

A test is added.

Closes datalad#680
@mih mih added this to the 1.4 milestone May 14, 2024
@mih mih marked this pull request as ready for review May 14, 2024 05:20
@mih mih changed the title Fix no-HEAD handling in iter_gitsttaus() Fix no-HEAD handling in iter_gitstatus() May 14, 2024
@mih
Copy link
Member Author

mih commented May 14, 2024

Test failure on datalad-core is known and not caused here. A fix is blocked in #669 (although there is no reason to carry it there).

@mih mih merged commit 9b9984e into datalad:main May 14, 2024
5 of 6 checks passed
@mih mih deleted the bf-680 branch May 14, 2024 06:07
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.

next-status claims nothing to save when all is staged and no HEAD
1 participant