Skip to content

fix(git): validate submodule push exit status and warn on detached HEAD - #2

Open
lucienve wants to merge 1 commit into
Jaliborc:masterfrom
lucienve:fix/submodule-push-check
Open

fix(git): validate submodule push exit status and warn on detached HEAD#2
lucienve wants to merge 1 commit into
Jaliborc:masterfrom
lucienve:fix/submodule-push-check

Conversation

@lucienve

Copy link
Copy Markdown

Check the return code of git push origin in commitChanges to ensure submodule commits are successfully pushed before parent repository updates. If the push fails, check for detached HEAD state and throw an error to prevent unpushed submodule commit pointers from corrupting parent repositories.

Fixes #1

Check the return code of `git push origin` in `commitChanges` to ensure
submodule commits are successfully pushed before parent repository updates.
If the push fails, check for detached HEAD state and throw an error to
prevent unpushed submodule commit pointers from corrupting parent repositories.
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.

Submodule push failures in detached HEAD cause invalid tracked commit SHAs in parent repo

1 participant