Skip to content

Commit

Permalink
stop crashing on non-existant files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Osheroff committed Sep 13, 2015
1 parent 8ca0791 commit 6462126
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/git-spelunk
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,12 @@ def log(stuff)
end

file_context = GitSpelunk::FileContext.new(file, options)

if file_context.get_blame.empty?
$stderr.puts("No git information found for '#{file}'")
exit 1
end

ui = GitSpelunk::UI.new(file_context)

#ui.run

0 comments on commit 6462126

Please sign in to comment.