Merge pull request #876 from masarakki/fix-for-ghe-private

Change repo to be private when GHE is private mode.
This commit is contained in:
Brad Rydzewski 2015-02-12 23:09:19 -08:00
commit bd8dcf8de5

View file

@ -169,6 +169,7 @@ func (r *GitHub) GetRepos(user *model.User) ([]*model.Repo, error) {
if r.Private || repo.Private {
repo.CloneURL = *item.SSHURL
repo.Private = true
}
// if no permissions we should skip the repository