lolcommits 0.9.3.pre2 → 0.9.3.pre3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1c432270b046edb27829416bf9ada561b3aa0a5
|
4
|
+
data.tar.gz: d1238ceb4a716d739117795669c2ccf0c000a7ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85662930d7f30595deef8e6f4d9974057e2ff256a290369ea5db91d9747139a04ef93b5f22d62fc620eacb07d0a43c0835ac9fcedbd8dc40e2b9bf4745a9ea08
|
7
|
+
data.tar.gz: b46e6131b9874a545ecb4b904f90e5dea2494bcc6395a38a3bb472b3a22561bcf5c0d7701e1c2a63e9b579a89a2fe99a57e15440a64a7a2134d1e0df33d9dfeb
|
@@ -66,19 +66,18 @@ module Lolcommits
|
|
66
66
|
capture_cmd = 'lolcommits --capture'
|
67
67
|
|
68
68
|
if Lolcommits::Platform.platform_windows?
|
69
|
-
|
70
|
-
capture_cmd = "
|
69
|
+
exports = "set path=#{ruby_path};#{imagick_path};%PATH%"
|
70
|
+
capture_cmd = "#{exports} && IF \\I NOT \"%LOLCOMMITS_CAPTURE_DISABLED%\"==\"true\" #{capture_cmd} #{capture_args}"
|
71
71
|
else
|
72
72
|
locale_export = "LANG=\"#{ENV['LANG']}\""
|
73
73
|
hook_export = "PATH=\"#{ruby_path}:#{imagick_path}:$PATH\""
|
74
|
-
capture_cmd = "#{
|
74
|
+
capture_cmd = "if [ ! -d \"$GIT_DIR/rebase-merge\" ] && [ \"$LOLCOMMITS_CAPTURE_DISABLED\" != \"true\" ]; then #{capture_cmd} #{capture_args}; fi"
|
75
|
+
capture_cmd = "#{locale_export} && #{hook_export} && #{capture_cmd}"
|
75
76
|
end
|
76
77
|
|
77
78
|
<<-EOS
|
78
79
|
### lolcommits hook (begin) ###
|
79
|
-
|
80
|
-
#{capture_cmd} #{capture_args}
|
81
|
-
fi
|
80
|
+
#{capture_cmd}
|
82
81
|
### lolcommits hook (end) ###
|
83
82
|
EOS
|
84
83
|
end
|
@@ -43,13 +43,12 @@ module Lolcommits
|
|
43
43
|
capture_cmd = 'lolcommits --capture'
|
44
44
|
|
45
45
|
if Lolcommits::Platform.platform_windows?
|
46
|
-
|
47
|
-
capture_cmd = "
|
46
|
+
exports = "set path=#{ruby_path};#{imagick_path};%PATH%"
|
47
|
+
capture_cmd = "#{exports} && IF \\I NOT \"%LOLCOMMITS_CAPTURE_DISABLED%\"==\"true\" #{capture_cmd} #{capture_args}"
|
48
48
|
else
|
49
49
|
locale_export = "LANG=\"#{ENV['LANG']}\""
|
50
50
|
hook_export = "PATH=\"#{ruby_path}:#{imagick_path}:$PATH\""
|
51
|
-
capture_cmd = "#{locale_export} #{hook_export} #{capture_cmd}"
|
52
|
-
capture_cmd = "if [ \"$LOLCOMMITS_CAPTURE_DISABLED\" != \"true\" ]; then #{capture_cmd} #{capture_args}; fi"
|
51
|
+
capture_cmd = "#{locale_export} && #{hook_export} && if [ \"$LOLCOMMITS_CAPTURE_DISABLED\" != \"true\" ]; then #{capture_cmd} #{capture_args}; fi"
|
53
52
|
end
|
54
53
|
|
55
54
|
capture_cmd
|
data/lib/lolcommits/version.rb
CHANGED