cv / git-utils

Utilities for Git users

This URL has Read+Write access

git-utils / Rakefile
e2d4088c » cv 2008-07-23 added rakefile 1 task :default do
2 git = `which git`.strip
3 raise "Could not find git - is it in the path? Try 'which git'." unless File.exists?(git)
4
5 git_path = File.dirname(git)
6 raise "Permission denied - #{git_path} is not writable. Try 'sudo rake' or set the permissions accordingly." unless File.writable?(git_path)
7
8 Dir['git-*'].each do |file|
9 cp file, git_path
10 end
11 end