lib/gitdocs/runner.rb in gitdocs-0.4.8 vs lib/gitdocs/runner.rb in gitdocs-0.4.9

- old
+ new

@@ -19,11 +19,12 @@ end results end def run - return false unless self.valid? && !self.root.empty? + return false unless self.valid? + @show_notifications = @share.notification @current_remote = @share.remote_name @current_branch = @share.branch_name @current_revision = sh_string("git rev-parse HEAD") Guard::Notifier.turn_on if @show_notifications @@ -157,10 +158,10 @@ result end def valid? out, status = sh_with_code "git status" - status.success? + @root.present? && status.success? end def warn(title, msg) if @show_notifications Guard::Notifier.notify(msg, :title => title)