git-precommit 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/git-precommit.gemspec +1 -1
- data/lib/git-precommit/precommit_tasks.rb +8 -0
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -44,7 +44,7 @@ Add the following code to your project's Rakefile:
|
|
44
44
|
|
45
45
|
git-precommit can be configured to automatically push to your remote
|
46
46
|
repository on successful checkin by installing the post-commit hook:
|
47
|
-
rake
|
47
|
+
rake git:postcommit
|
48
48
|
However, if you're running a continuous
|
49
49
|
integration build, you shouldn't push onto a broken build (unless you're
|
50
50
|
pushing the fix).
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/git-precommit.gemspec
CHANGED
@@ -27,6 +27,14 @@ module GitPrecommit
|
|
27
27
|
copy t.prerequisites.first, t.name
|
28
28
|
chmod 0755, t.name
|
29
29
|
end
|
30
|
+
|
31
|
+
namespace :git do
|
32
|
+
desc "Install the git pre-commit hook"
|
33
|
+
task :precommit => ".git/hooks/pre-commit"
|
34
|
+
|
35
|
+
desc "Install the git post-commit hook"
|
36
|
+
task :postcommit => ".git/hooks/post-commit"
|
37
|
+
end
|
30
38
|
end
|
31
39
|
end
|
32
40
|
end
|