Make repository request from default branch instead of master only

We are adding this change because some repositories uses different branches as their default branch. 
They may use "gh-pages" or "dev" as a default branch.