summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Muškovac <yofel@gmx.net>2016-07-30 23:00:46 (GMT)
committerPhilip Muškovac <yofel@gmx.net>2016-07-30 23:00:46 (GMT)
commitfd331c220675e131aef86aaa1fc2a46738bbf57f (patch)
tree668166f7bd1c52140caee383e950fa4d49b5f854
parentd38d2bebc6e3b71aa732fbf1cbae81be0042b6b4 (diff)
Use same semaphore for all unknown git hosts, rather than failing them
-rwxr-xr-xgit-monitor/git2
-rw-r--r--git-monitor/lib/semaphore.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/git-monitor/git b/git-monitor/git
index 6a5fc05..840c256 100755
--- a/git-monitor/git
+++ b/git-monitor/git
@@ -46,7 +46,7 @@ end
exit_code = 0
if synchronize
monitor = Service.start
- host = nil
+ host = :other
# FIXME: this needs isolation in a class for testing and such
HOSTS.each do |h, sym|
if ARGV.join.include?(h)
diff --git a/git-monitor/lib/semaphore.rb b/git-monitor/lib/semaphore.rb
index c72bec8..a6cc35f 100644
--- a/git-monitor/lib/semaphore.rb
+++ b/git-monitor/lib/semaphore.rb
@@ -127,7 +127,7 @@ end
# Additional processes are held until a slot frees up.
class Semaphore
#HOSTS = [:debian, :kde, :neon, :neon, :ubuntu].freeze
- HOSTS = [:kde, :ubuntu].freeze
+ HOSTS = [:kde, :ubuntu, :other].freeze
attr_reader :host_semaphores
def initialize