Add a flag to msync execute
on the default branch
#288
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
From time to time, it makes sense to ensure we have a clean environment
to work on and synchronize the module repositories with what is
available on the remote end to do some local cleanup.
By default we work on what is configured in modulesync_config's default
branch (usualy a branch named "modulesync"), but for running
git pull
we want to be on the default branch, which may be named 'main' or
'master' depending on the repository. Using
--branch main
or--branch master
will not have the expected outcome.Add a
--default-branch
/-B
flag to indicate that we want to work onthe default branch of the module.
This allows one to do some cleanup with:
This is hopefully more convenient than removing the whole
modules
directory and fetching all modules again.