Repo backup overhaul#7
Merged
Merged
Conversation
The previous commit used the wrong URL for a private repo. This was masked by the lack of error loging in logging_subprocess (which will be in a separate branch)
Previously git clones could fail without any indication unless you edited the source to change `logger=None` to use a configured logger. Now a non-zero return code will always output a message to stderr and will display the executed command so it can be rerun for troubleshooting.
* Now wikis will follow the same logic as the main repo checkout for --prefer-ssh. * The regular repository and wiki paths both use the same function to handle either cloning or updating a local copy of the remote repo * All git updates will now use “git fetch --all --tags” to ensure that tags and branches other than master will also be backed up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
c81bf98 ensures that logging_subprocess always prints a message to stderr if something fails including the failed command-line for ease of troubleshooting
5612e51 consolidates the main & wiki repository clone/update logic into a single function and allows wiki cloning to also use SSH for private repositories.