Skip to content
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

Ensure git config changes are reverted on failure #761

Merged
merged 1 commit into from
Jan 20, 2021

Conversation

a0u
Copy link
Member

@a0u a0u commented Jan 14, 2021

Related issue: #595

Type of change: bug fix

Impact: other

Release Notes
This ensures that the temporary git config settings for excluding certain submodules from the recursive update are properly reverted if the submodule update fails or is interrupted by SIGINT or SIGTERM.

The git commands have been refactored to loop over a centralized blacklist, which should reduce the potential for human errors when updating this script in the future.

Copy link
Contributor

@colinschmidt colinschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

scripts/init-submodules-no-riscv-tools-nolog.sh Outdated Show resolved Hide resolved
@a0u a0u force-pushed the init-submodules-gitconfig branch from d66825f to 36fe690 Compare January 19, 2021 01:28
@jerryz123
Copy link
Contributor

Merging to move forwards with release

@jerryz123 jerryz123 merged commit a7652ce into dev Jan 20, 2021
@a0u a0u deleted the init-submodules-gitconfig branch January 20, 2021 03:38
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.

4 participants