Commit f7859ec1ed9061abe467fb9860e9d87514e4b2e1
1 parent
ced572c3
Exists in
master
and in
4 other branches
rake dev_repo: fixed for ubuntu
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
lib/tasks/dev_repo.rake
| ... | ... | @@ -5,19 +5,19 @@ raise "\n *** Run ./lib/tasks/dev_user.sh first *** \n" if key.empty? |
| 5 | 5 | Key.create(:user_id => User.first, :key => key, :title => "gitlabdev") |
| 6 | 6 | |
| 7 | 7 | puts "\n *** Clone diaspora from github" |
| 8 | -`sudo -u gitlabdev -H git clone git://github.com/diaspora/diaspora.git /home/gitlabdev/diaspora` | |
| 8 | +`sudo -u gitlabdev -H sh -c "cd /home/gitlabdev; git clone git://github.com/diaspora/diaspora.git /home/gitlabdev/diaspora"` | |
| 9 | 9 | |
| 10 | 10 | puts "\n *** Push diaspora source to gitlab" |
| 11 | 11 | `sudo -u gitlabdev -H sh -c "cd /home/gitlabdev/diaspora; git remote add local git@localhost:diaspora.git; git push local master; git push local --tags; git checkout -b api origin/api; git push local api; git checkout -b heroku origin/heroku; git push local heroku"` |
| 12 | 12 | |
| 13 | 13 | puts "\n *** Clone rails from github" |
| 14 | -`sudo -u gitlabdev -H git clone git://github.com/rails/rails.git /home/gitlabdev/rails` | |
| 14 | +`sudo -u gitlabdev -H sh -c "cd /home/gitlabdev; git clone git://github.com/rails/rails.git /home/gitlabdev/rails"` | |
| 15 | 15 | |
| 16 | 16 | puts "\n *** Push rails source to gitlab" |
| 17 | 17 | `sudo -u gitlabdev -H sh -c "cd /home/gitlabdev/rails; git remote add local git@localhost:ruby_on_rails.git; git push local master; git push local --tags"` |
| 18 | 18 | |
| 19 | 19 | puts "\n *** Clone rubinius from github" |
| 20 | -`sudo -u gitlabdev -H git clone git://github.com/rubinius/rubinius.git /home/gitlabdev/rubinius` | |
| 20 | +`sudo -u gitlabdev -H sh -c "cd /home/gitlabdev; git clone git://github.com/rubinius/rubinius.git /home/gitlabdev/rubinius"` | |
| 21 | 21 | |
| 22 | 22 | puts "\n *** Push rubinius source to gitlab" |
| 23 | 23 | `sudo -u gitlabdev -H sh -c "cd /home/gitlabdev/rubinius; git remote add local git@localhost:rubinius.git; git push local master; git push local --tags"` | ... | ... |