bitbucket_snagger
Snag public git repos from the internet and upload them to your private bitbucket server
Credentials
- username, password and base_url are stored in a file at
~/.bitbucket_snagger.iniand cannot be passed on the command line - For an example file, see https://github.com/GeoffWilliams/bitbucket_snagger/tree/master/doc/.bitbucket_snagger.ini
- The permissions on
~/.bitbucket_snagger.inimust be0600 - You can remove credentials with the logout command when you are finished
Logging out
bundle exec bitbucket_snagger logout
Creating and uploading bitbucket
--projectKeyis the 3 letterprojectKey, egpup--repositorySlugis the repository to upload to within the project, egapache--upstreamis the upstream repository to merge changes from--verbositysets debug mode (optional)snagis the command to run (alwayssnagto update)
bundle exec bitbucket_snagger \
--projectKey pup \
--repositorySlug apache \
--upstream https://github.com/puppetlabs/puppetlabs-apache \
--verbosity debug \
snag
Notes
- Attempting to access insecure
httprepositories will work but will output a warning message