Add auth for private, non-GitHub repos (#2826)
Change elseif to if.
Merge pull request #2838 from timroberson/issue-2826

Add auth for private, non-GitHub repos (#2826)