Only treat .go files in ^vendor/ as generated

This commit is contained in:
Brandon Keepers
2016-02-18 19:57:34 -05:00
parent 3c5bcb434c
commit d46530989c
3 changed files with 6 additions and 2 deletions

View File

@@ -286,7 +286,9 @@ module Linguist
#
# Returns true or false.
def go_vendor?
!!name.match(/vendor\//)
return false unless extname == '.go'
!!name.match(/\Avendor\//)
end
# Internal: Is the blob part of Godeps/,