https://github.com/ochorocho/gitdownload
Enable Redmine to download a GIT repository as ZIP or TAR.GZ and handle creation of Repositories
https://github.com/ochorocho/gitdownload
git redmine
Last synced: 12 months ago
JSON representation
Enable Redmine to download a GIT repository as ZIP or TAR.GZ and handle creation of Repositories
- Host: GitHub
- URL: https://github.com/ochorocho/gitdownload
- Owner: ochorocho
- Created: 2014-05-02T23:44:27.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2023-10-11T12:11:14.000Z (over 2 years ago)
- Last Synced: 2024-04-15T02:03:55.487Z (about 2 years ago)
- Topics: git, redmine
- Language: JavaScript
- Homepage:
- Size: 148 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gitdownload
## Requirements
* Linux/Unix based OS
* GIT installed
## Should work with ...
* Redmine >= 2.6
* Git >= 1.9
## Installation
_Clone repository:_
```
cd /your/redmine/root/plugins/
git clone https://github.com/ochorocho/gitdownload.git
```
_Run plugin migration_
```
cd /your/redmine/root/
rake redmine:plugins:migrate RAILS_ENV=production
```
_Install rack-cors:_
Follow https://github.com/cyu/rack-cors to install rack-cors and create `$REDMINE_HOME/config/initializers/cors.rb` with following content:
```
Rails.application.config.middleware.insert_before 0, Rack::Cors do
allow do
origins '*'
resource '*', headers: :any, methods: [:get, :post, :patch, :put]
end
end
```
_Generate `public/javascripts/translation.js` and `public/javascripts/i18n.js`:_
This should be executed everytime after language files like `en.yml` are updated.
```sh
RAILS_ENV=production rake i18n:js:export
```
_Restart Redmine:_
```
touch tmp/restart.txt
```
## Uninstallation
_Undo plugin migration_
```
cd /your/redmine/root/
rake redmine:plugins:migrate NAME=gitdownload VERSION=0 RAILS_ENV=production
```
_Delete gitdownload plugin directory:_
```
rm -rf /your/redmine/root/plugins/gitdownload
```
_Delete cors middleware:_
```
rm /your/redmine/root/config/initializers/cors.rb
```
_Restart Redmine:_
```
touch tmp/restart.txt
```
**IMPORTANT:**
* Permissions are tied to "commit_access"
* Make sure "Hostname" and "Protocol" is set correctly under Administration -> Plugins -> Gitdownload -> Configure!
* On the plugins configuration site set the GIT Url
* For authentications repositories needs a name following tis schema `..git` e.g. mytestrepo.typo3.git (just leave the name as generated)
## Features
* export branches
* export specific changeset
* choose format for export, tar.gz or zip
* show and copy repository path
* Initialize/create repository when created in Redmine
* Insert default files to created repository
* Editable .gitconfig to use with Redmine