scttnlsn / dandelion

Incremental Git repository deployment.
http://scttnlsn.github.io/dandelion
MIT License
738 stars 60 forks source link

Crash when exclude config isn't set #17

Closed maggo closed 11 years ago

maggo commented 11 years ago

Dandelion crashes on deploy when the exclude config parameter is not set

/Users/maggo/.rvm/gems/ruby-1.9.3-p286/gems/dandelion-0.3.7/lib/dandelion/deployment.rb:60:in `exclude_file?': undefined method `map' for nil:NilClass (NoMethodError)
    from /Users/maggo/.rvm/gems/ruby-1.9.3-p286/gems/dandelion-0.3.7/lib/dandelion/deployment.rb:94:in `block in deploy_changed'
    from /Users/maggo/.rvm/gems/ruby-1.9.3-p286/gems/dandelion-0.3.7/lib/dandelion/deployment.rb:93:in `each'
    from /Users/maggo/.rvm/gems/ruby-1.9.3-p286/gems/dandelion-0.3.7/lib/dandelion/deployment.rb:93:in `deploy_changed'
    from /Users/maggo/.rvm/gems/ruby-1.9.3-p286/gems/dandelion-0.3.7/lib/dandelion/deployment.rb:82:in `deploy'
    from /Users/maggo/.rvm/gems/ruby-1.9.3-p286/gems/dandelion-0.3.7/lib/dandelion/command/deploy.rb:50:in `execute'
    from /Users/maggo/.rvm/gems/ruby-1.9.3-p286/gems/dandelion-0.3.7/lib/dandelion/application.rb:38:in `block in execute'
    from /Users/maggo/.rvm/gems/ruby-1.9.3-p286/gems/dandelion-0.3.7/lib/dandelion/command.rb:80:in `initialize'
    from /Users/maggo/.rvm/gems/ruby-1.9.3-p286/gems/dandelion-0.3.7/lib/dandelion/application.rb:36:in `new'
    from /Users/maggo/.rvm/gems/ruby-1.9.3-p286/gems/dandelion-0.3.7/lib/dandelion/application.rb:36:in `execute'
    from /Users/maggo/.rvm/gems/ruby-1.9.3-p286/gems/dandelion-0.3.7/lib/dandelion/application.rb:7:in `execute'
    from /Users/maggo/.rvm/gems/ruby-1.9.3-p286/gems/dandelion-0.3.7/bin/dandelion:7:in `<top (required)>'
    from /Users/maggo/.rvm/gems/ruby-1.9.3-p286/bin/dandelion:19:in `load'
    from /Users/maggo/.rvm/gems/ruby-1.9.3-p286/bin/dandelion:19:in `<main>'
    from /Users/maggo/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `eval'
    from /Users/maggo/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `<main>'
scttnlsn commented 11 years ago

Thanks for reporting this. Fixed in v0.3.8.