lib/generators/churn.rb in metric_fu-2.0.1 vs lib/generators/churn.rb in metric_fu-2.1.0
- old
+ new
@@ -11,10 +11,10 @@
yaml_start = @output.index("---")
@output = @output[yaml_start...@output.length] if yaml_start
end
def analyze
- if @output.match(/fatal: Not a git repository/)
+ if @output.match(/Churning requires a subversion or git repo/)
@churn = [:churn => {}]
else
@churn = YAML::load(@output)
end
end