Skip to content

Repo backup overhaul#7

Merged
josegonzalez merged 3 commits into
josegonzalez:masterfrom
acdha:repo-backup-overhaul
Mar 13, 2015
Merged

Repo backup overhaul#7
josegonzalez merged 3 commits into
josegonzalez:masterfrom
acdha:repo-backup-overhaul

Conversation

@acdha

@acdha acdha commented Mar 13, 2015

Copy link
Copy Markdown
Contributor

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.

acdha added 3 commits March 13, 2015 15:39
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
josegonzalez added a commit that referenced this pull request Mar 13, 2015
@josegonzalez josegonzalez merged commit 63bf726 into josegonzalez:master Mar 13, 2015
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.

2 participants