drewblessing / gitlab-cli

GitLab Command Line Tool - Interact with your GitLab server via the command line to manage snippets, projects and more.
MIT License
166 stars 20 forks source link

Fix bug with project description #14

Closed Jiwoong closed 11 years ago

Jiwoong commented 11 years ago

NoMethodError raised when there's no project description.

gitlab-cli/bin/subcommands/project.rb:23:in `info': undefined method `empty?' for nil:NilClass (NoMethodError)

Before call empty? to project.description, add nil? to check description.empty? is available.

drewblessing commented 11 years ago

Thanks for your contribution, @Jiwoong. I appreciate it.