Skip to content

Commit

Permalink
Avoid errors when git is not installed.
Browse files Browse the repository at this point in the history
This will obviously not allow you to build the gem, but won't create issues
if you just want to rebuild the documentation and/or run the tests.

Signed-off-by: Aman Gupta <aman@tmm1.net>
  • Loading branch information
Flameeyes authored and tmm1 committed May 29, 2010
1 parent 238eeea commit 1636a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Spec = Gem::Specification.new do |s|
s.extra_rdoc_files = Dir['README,docs/*']

excludes = %w(.gitignore)
s.files = `git ls-files`.split("\n") - excludes
s.files = `git ls-files`.split("\n") - excludes rescue Errno::ENOENT

s.require_path = 'lib'

Expand Down

0 comments on commit 1636a19

Please sign in to comment.