Skip to content
This repository was archived by the owner on Dec 21, 2019. It is now read-only.

Commit f3d6757

Browse files
committed
Merge branch 'master' of [email protected]:cv/git-utils
2 parents a5ee01e + e2d4088 commit f3d6757

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Rakefile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

0 commit comments

Comments
 (0)