Skip to content
Browse files

Look for license anywhere in the filename, not just the end

  • Loading branch information...
1 parent 73881d1 commit c02829acfce07cbbcfa39f9af4a6947f53527735 @kyleconroy committed Apr 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1
@@ -46,7 +46,7 @@ def get_branch(repo, branches):
def find_license_file(tree):
for blob in tree['tree']:
- if blob['path'].startswith("LICENSE"):
+ if 'LICENSE' in blob['path']:
return blob
raise KeyError("No LICENSE file found")

0 comments on commit c02829a

Please sign in to comment.
Something went wrong with that request. Please try again.