git-precommit 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/git-precommit/precommit_tasks.rb +1 -7
- data/lib/git-precommit/version.rb +2 -2
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -23,19 +23,13 @@ module GitPrecommit
|
|
23
23
|
pre_commit = ".git/hooks/pre-commit"
|
24
24
|
pre_commit_src = "#{template_path}/pre-commit"
|
25
25
|
|
26
|
-
task :overwrite
|
27
|
-
if @options[:draconian]
|
28
|
-
copy pre_commit_src, pre_commit
|
29
|
-
chmod 0755, pre_commit
|
30
|
-
end
|
31
|
-
end
|
26
|
+
task :overwrite
|
32
27
|
|
33
28
|
deps = [pre_commit_src]
|
34
29
|
deps += [:overwrite] if @options[:draconian]
|
35
30
|
|
36
31
|
desc "Install the git pre-commit hook"
|
37
32
|
file pre_commit => deps do |t|
|
38
|
-
warn "Git pre-commit hook missing, setting up…"
|
39
33
|
copy t.prerequisites.first, t.name
|
40
34
|
chmod 0755, t.name
|
41
35
|
end
|
@@ -1,3 +1,3 @@
|
|
1
1
|
module GitPrecommit
|
2
|
-
VERSION = "1.2.
|
3
|
-
end
|
2
|
+
VERSION = "1.2.5"
|
3
|
+
end
|