diff --git a/lib/git_fame/base.rb b/lib/git_fame/base.rb
index <HASH>..<HASH> 100644
--- a/lib/git_fame/base.rb
+++ b/lib/git_fame/base.rb
@@ -236,7 +236,7 @@ module GitFame
 
     # Return mime type for file (form: x/y)
     def mime_type_for_file(file)
-      execute("file --mime-typ '#{file}'").to_s.
+      execute("git show #{commit_range.range.last}:'#{file}' | file --mime-type -").to_s.
         match(/.+: (.+?)$/).to_a[1]
     end
 
diff --git a/lib/git_fame/commit_range.rb b/lib/git_fame/commit_range.rb
index <HASH>..<HASH> 100644
--- a/lib/git_fame/commit_range.rb
+++ b/lib/git_fame/commit_range.rb
@@ -11,11 +11,11 @@ class CommitRange < Struct.new(:data, :current_branch)
     data.is_a?(Array)
   end
 
-  private
-
   def range
     is_range? ? data : [data]
   end
+  
+  private
 
   def branch?(commit)
     current_branch == commit
Use current ref to check mime type for file