diff options
author | Thomas Kjeldahl Nilsson <thomas@kjeldahlnilsson.net> | 2012-10-12 07:03:08 (GMT) |
---|---|---|
committer | Thomas Kjeldahl Nilsson <thomas@kjeldahlnilsson.net> | 2012-10-12 07:03:08 (GMT) |
commit | 80596381916b124a19bedd7ab9b2370be9cfc609 (patch) | |
tree | 439c080bffb5a4e76202e84b8c950ed69c5f772a /lib | |
parent | 83f9566a726afd7260ef317ca7119b5c4e71d31f (diff) |
Make sure mirrored project dir is present before symlinking
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/mirrorrepos.rake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tasks/mirrorrepos.rake b/lib/tasks/mirrorrepos.rake index 41639a9..8a7b8d9 100644 --- a/lib/tasks/mirrorrepos.rake +++ b/lib/tasks/mirrorrepos.rake @@ -37,6 +37,7 @@ namespace :mirror do actual_path = "#{GitoriousConfig["repository_base_path"]}/#{r.real_gitdir}" repo_parent_dir = Pathname.new(r.url_path).dirname project_dir = "#{mirror_base}/#{repo_parent_dir}" + puts puts `mkdir -p #{project_dir}` symlink_path = "#{project_dir}/#{r.name}" puts `ln -fs #{actual_path} #{symlink_path}` end |