gemhome / fnordmetric

(possible new home for) FnordMetric is a redis/ruby-based realtime Event-Tracking app
0 stars 1 forks source link

Split current repo to the separate repositories according to the destination. #62

Open bf4 opened 10 years ago

bf4 commented 10 years ago

Issue by aratak Wednesday Jul 17, 2013 at 08:58 GMT Originally opened as https://github.com/paulasmuth/fnordmetric/issues/153


I've found the bug (https://github.com/paulasmuth/fnordmetric/pull/81), which has been fixed, but currently has not applied to the master branch. Seems, during the code refactoring before 1.0 release, you've lost the changes from #81 pull request. And I can't fork fnordmetric-core, fix it into my fork and set into my Gemfile separate repo because the root of the repository is'nt gem root (it's doesn't contain .gemspec file)

  gem 'fnordmetric', github: 'myfork/fnordmetric', branch: 'the-fix'

And yes, #81 bug is reproducable on the latest stable version and master.

Sy suggestion I've implemented into my fork: https://github.com/cssum/fnordmetric/pull/1 But I can't do the pull request, because you have to create your own subrepos fnordmetric-core, fnordmetric-ui and fnordmetric-enterprise.

Use the git filter-branch to save the history of each subfolder. Example:

# besure that you have created on the github separate repos for ui, enterprise and core
git clone git@github.com:paulasmuth/fnordmetric.git fnordmetric-enterprise
cd fnordmetric-enterprise
git filter-branch --subdirectory-filter fnordmetric-enterprise -- --all
git remote add neworigin git@github.com:paulasmuth/fnordmetric-enterprise.git
git push neworigin
git remote remove origin
git remote rename neworigin origin
# do it three times with ui, enterprise and core
cd ../
git clone git@github.com:paulasmuth/fnordmetric.git fnordmetric
cd fnordmetric
git rm fnordmetric-enterprise
git commit -m "Extract to the submodule fnordmetric-enterprise subfolder"
git submodule add git@github.com:paulasmuth/fnordmetric-enterprise.git fnordmetric-enterprise
git add .
git commit --amend
bf4 commented 10 years ago

Comment by Sija Wednesday Aug 21, 2013 at 10:50 GMT


:+1: