dev 2.0.132 → 2.0.133
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands/commit.rb +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a71cf0adc16e8314dd1dc8bcb294224c648d7377
|
4
|
+
data.tar.gz: 289536798eaed2c6709b0c4d2ef32176af09a12f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df8b0a5dbb2ae301432aa64804ee7b8264d2dbeb1d1938a7b9736b98cd096e156f25a8e478d30906df637b51efcf72353673aabb1e4def749ab19ceeb1f4415c
|
7
|
+
data.tar.gz: 6c1376b6ba87b6aa9a1054d379aecf8a73a00e964b701ff758f9f5f78be7d14c1b503bd341dfa8167f4a01eb71cdbca0a298c5b1a2b0728f0ec9ea2fbd2b1d0e
|
data/lib/commands/commit.rb
CHANGED
@@ -20,14 +20,20 @@ class Commit < Array
|
|
20
20
|
if(!File.exists?('commit.message') || message.length==0)
|
21
21
|
if(defined?(REQUIRE_COMMIT_MESSAGE))
|
22
22
|
puts "commit.message required to perform commit"
|
23
|
+
Command.reset_commit_message
|
24
|
+
raise "commit.message required to perform commit"
|
23
25
|
else
|
24
26
|
add 'svn commit -m"commit all"'
|
25
27
|
end
|
26
28
|
else
|
27
29
|
add 'svn commit --file commit.message'
|
28
|
-
add "<%
|
30
|
+
add "<%Command.reset_commit_message%>"
|
29
31
|
#add "<%FileUtils.rm('commit.message')%>" if File.exists?('commit.message')
|
30
32
|
end
|
31
33
|
end
|
32
34
|
end
|
35
|
+
|
36
|
+
def self.reset_commit_message
|
37
|
+
File.open('commit.message','w'){|f|f.write('')}
|
38
|
+
end
|
33
39
|
end
|