Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added submodules for development

  • Loading branch information...
commit c2f7e703d9bbd1c672048a41814f1a2c146e7a55 1 parent c29eb4c
@viking authored
View
1  .gitignore
@@ -0,0 +1 @@
+.*swp
View
6 .gitmodules
@@ -0,0 +1,6 @@
+[submodule "repos/development"]
+ path = repos/development
+ url = git@kindlyviking.com:blit-dev
+[submodule "repos/test"]
+ path = repos/test
+ url = git@kindlyviking.com:blit-dev
View
20 Rakefile
@@ -33,15 +33,13 @@ task :svn_add do
system "svn status | grep '^\?' | sed -e 's/? *//' | sed -e 's/ /\ /g' | xargs svn add"
end
-desc "Initialize git repository"
-task :git_boot do
- system "rm -fr repos/#{Merb.env}"
- mkdir "repos/#{Merb.env}"
- repos = Git.init(File.expand_path("repos/#{Merb.env}"))
- touch "repos/#{Merb.env}/README"
- mkdir "repos/#{Merb.env}/posts"
- touch "repos/#{Merb.env}/posts/housekeeping"
- repos.add("README")
- repos.add("posts/housekeeping")
- repos.commit("Initial commit")
+namespace :repos do
+ desc "Initialize git repository"
+ task :boot do
+ local_dir = "repos/#{Merb.env}"
+ remote_url = ENV['REMOTE']
+ system "rm -fr #{local_dir}"
+
+ system "git submodule add #{remote_url} #{local_dir}"
+ end
end
View
3  repos/.gitignore
@@ -1,3 +0,0 @@
-development
-test
-production
1  repos/development
@@ -0,0 +1 @@
+Subproject commit f02cefebe8327a1914b7fadf9ca346c8d3a46b82
1  repos/test
@@ -0,0 +1 @@
+Subproject commit f02cefebe8327a1914b7fadf9ca346c8d3a46b82
Please sign in to comment.
Something went wrong with that request. Please try again.