rebase_pusher 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rebase_pusher/version.rb +1 -1
- data/lib/rebase_pusher.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c227c7874dd6e4cf6fcab7351ed5090ca1736e6f6ef4d1f1f4e21fe6e655c74e
|
4
|
+
data.tar.gz: 8ae3f18aa6ead9e2b533f5433d8b0dd1707631b3b4ab18486625facf78fcfd6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71049930e742049c27b7f087e6db0009865018942817849740d2286691c63bd7a2052977303fd24c43a30c2cd68a06c87f5aeef467b55dddd2d4310b77a71ea4
|
7
|
+
data.tar.gz: 27f8adc215aa56d3de8e9739ca9e868017a6c5f74e8c1b2a6f2458887953ce4b83b52cf2be03de8535dac168d57958141b3fc99a6c0e6707f2db6f80824452ed
|
data/lib/rebase_pusher.rb
CHANGED
@@ -68,12 +68,12 @@ class RebasePusher
|
|
68
68
|
# Make sure I never touch other people's branch
|
69
69
|
author_emails = sh("git log --format='%ae' #{merge_base_commitid}..#{branch}").split("\n").uniq
|
70
70
|
|
71
|
-
!ignored_branches?(branch) && !author_emails.empty? && author_emails.all? { |email| email == my_email }
|
71
|
+
!ignored_branches.include?(branch) && !author_emails.empty? && author_emails.all? { |email| email == my_email }
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
75
|
-
def ignored_branches
|
76
|
-
options[:ignored_branches]
|
75
|
+
def ignored_branches
|
76
|
+
options[:ignored_branches] || []
|
77
77
|
end
|
78
78
|
|
79
79
|
def default_branch
|