Commit Graph

36 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
a4d6272b50 Merge pull request #11 from Embed-Engineering/master
Added test for uninitialized repo's (or wiki's)
2015-04-15 11:03:25 -04:00
Mathijs Jonker
7ce61202e5 Fixed indent 2015-04-15 12:21:58 +02:00
mjonker-embed
3e82d829e4 Update github-backup 2015-04-15 12:14:55 +02:00
mjonker-embed
339ad96876 Skip unitialized repo's
These gave me errors which caused mails from crontab.
2015-04-15 12:10:53 +02:00
Jose Diaz-Gonzalez
b2a942eb43 Merge pull request #10 from Embed-Engineering/master
Added prefer-ssh
2015-03-20 10:54:42 -04:00
mjonker-embed
e8aa38f395 Added prefer-ssh
Was needed for my back-up setup, code includes this but readme wasn't updated
2015-03-20 14:22:53 +01:00
Jose Diaz-Gonzalez
86bdb1420c Merge pull request #9 from acdha/ratelimit-retries
Retry API requests which failed due to rate-limiting
2015-03-13 17:55:25 -04:00
Chris Adams
2e7f325475 Retry API requests which failed due to rate-limiting
This allows operation to continue, albeit at a slower pace,
if you have enough data to trigger the API rate limits
2015-03-13 17:37:01 -04:00
Jose Diaz-Gonzalez
8bf62cd932 Release 0.4.0 2015-03-13 16:33:28 -04:00
Jose Diaz-Gonzalez
63bf7267a6 Merge pull request #7 from acdha/repo-backup-overhaul
Repo backup overhaul
2015-03-13 16:32:49 -04:00
Chris Adams
5612e51153 Update repository back up handling for wikis
* 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
2015-03-13 15:50:30 -04:00
Chris Adams
c81bf98627 logging_subprocess: always log when a command fails
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.
2015-03-13 15:50:04 -04:00
Chris Adams
040516325a Switch to using ssh_url
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)
2015-03-13 15:39:35 -04:00
Jose Diaz-Gonzalez
dca9f8051b Merge pull request #6 from acdha/allow-clone-over-ssh
Add an option to prefer checkouts over SSH
2015-03-12 17:15:19 -04:00
Chris Adams
3bc23473b8 Add an option to prefer checkouts over SSH
This is really useful with private repos to avoid being nagged
for credentials for every repository
2015-03-12 16:10:46 -04:00
Jose Diaz-Gonzalez
2c9eb80cf2 Release 0.3.0 2015-02-20 12:41:25 -05:00
Jose Diaz-Gonzalez
bb86f0582e Merge pull request #4 from klaude/pull_request_support
Add pull request support
2015-01-16 11:06:01 -05:00
Kevin Laude
e8387f9a7f Add pull request support
Back up reporitory pull requests by passing the --include-pulls
argument. Pull requests are saved to
repositories/<repository name>/pulls/<pull request number>.json. Include
the --pull-request-comments argument to add review comments to the pull
request backup and pass the --pull-request-commits argument to add
commits to the pull request backup.

Pull requests are automatically backed up when the --all argument is
uesd.
2015-01-16 09:57:05 -06:00
Jose Diaz-Gonzalez
39b173f173 Merge pull request #5 from klaude/github-enterprise-support
Add GitHub Enterprise Support
2015-01-15 22:05:33 -05:00
Kevin Laude
883c92753d Add GitHub Enterprise support
Pass the -H or --github-host argument with a GitHub Enterprise hostname
to backup from that GitHub enterprise host. If no argument is passed
then back up from github.com.
2015-01-15 20:20:33 -06:00
Jose Diaz-Gonzalez
be2583f340 Release 0.2.0 0.2.0 2014-09-22 01:30:38 -04:00
Jose Diaz-Gonzalez
3c5edb0700 Add support for retrieving repositories. Closes #1 2014-09-22 01:27:19 -04:00
Jose Diaz-Gonzalez
aa4201d102 Fix PEP8 violations 2014-09-22 01:02:09 -04:00
Jose Diaz-Gonzalez
5719a947f9 Merge pull request #2 from johnyf/master
add authorization to header only if specified by user
2014-09-13 17:27:36 -04:00
Ioannis Filippidis
deb1955a3e add authorization to header only if specified by user 2014-09-13 14:18:48 -07:00
Jose Diaz-Gonzalez
5b23fa6491 Fill out readme more 2014-09-08 12:33:54 -04:00
Jose Diaz-Gonzalez
3baf25f95b Fix import 2014-09-08 12:31:57 -04:00
Jose Diaz-Gonzalez
44124a4a7e Properly name readme 2014-09-03 12:38:33 -04:00
Jose Diaz-Gonzalez
64d9cebcd9 Create MANIFEST.in 2014-09-03 11:47:54 -04:00
Jose Diaz-Gonzalez
97d15886f2 Create .gitignore 2014-09-03 11:47:20 -04:00
Jose Diaz-Gonzalez
c6c2f49014 Create setup.py 2014-09-03 11:46:58 -04:00
Jose Diaz-Gonzalez
689b5f2613 Create requirements.txt 2014-09-03 11:45:14 -04:00
Jose Diaz-Gonzalez
05f650d733 Create __init__.py 2014-09-03 11:42:01 -04:00
Jose Diaz-Gonzalez
b9f9ab6f81 Create LICENSE.txt 2014-09-03 11:40:08 -04:00
Jose Diaz-Gonzalez
28b169a46a Create README.md 2014-09-03 11:39:30 -04:00
Jose Diaz-Gonzalez
1e9df5003c Create github-backup 2013-12-02 16:57:09 -05:00