We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bbd1a3 commit f80b2edCopy full SHA for f80b2ed
lib/tasks/gts/repos.rake
@@ -46,12 +46,16 @@ namespace :gts do
46
repository.hashed_path = repository.url_path
47
repository.save!
48
49
- # move repo directory
50
- FileUtils.mkdir_p(new_dir)
51
- FileUtils.mv(old_path, new_path)
+ if repository.ready?
+ # move repo directory
+ FileUtils.mkdir_p(new_dir)
52
+ FileUtils.mv(old_path, new_path)
53
- # fix hooks symlinks (they're relative)
54
- RepositoryHooks.create(Pathname(new_path))
+ # fix hooks symlinks (they're relative)
55
+ RepositoryHooks.create(Pathname(new_path))
56
+ else
57
+ puts "warning: repository doesn't exist on disk"
58
+ end
59
end
60
61
0 commit comments