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:
commit
bd8dcf8de5
1 changed files with 1 additions and 0 deletions
|
@ -169,6 +169,7 @@ func (r *GitHub) GetRepos(user *model.User) ([]*model.Repo, error) {
|
||||||
|
|
||||||
if r.Private || repo.Private {
|
if r.Private || repo.Private {
|
||||||
repo.CloneURL = *item.SSHURL
|
repo.CloneURL = *item.SSHURL
|
||||||
|
repo.Private = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// if no permissions we should skip the repository
|
// if no permissions we should skip the repository
|
||||||
|
|
Loading…
Reference in a new issue