ATTN: GitHub is currently in read-only mode. Please check GitHub's Twitter account for status updates.

public
Description: Utilities for Git users
Homepage:
Clone URL: git://github.com/cv/git-utils.git
git-utils / Rakefile
100644 11 lines (9 sloc) 0.376 kb
1
2
3
4
5
6
7
8
9
10
11
task :default do
  git = `which git`.strip
  raise "Could not find git - is it in the path? Try 'which git'." unless File.exists?(git)
  
  git_path = File.dirname(git)
  raise "Permission denied - #{git_path} is not writable. Try 'sudo rake' or set the permissions accordingly." unless File.writable?(git_path)
  
  Dir['git-*'].each do |file|
    cp file, git_path
  end
end