Skip to content

Commit 4c22986

Browse files
committed
keep _session of GitHub object. reuse it by GitHubEnterprise.
1 parent 1947f36 commit 4c22986

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git_repo/services/ext/github.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def connect(self):
2828
# upgrade self.gh from a GitHub object to a GitHubEnterprise object
2929
gh = github3.GitHubEnterprise(RepositoryService.build_url(self))
3030
self.gh._session.base_url = gh._session.base_url
31+
gh._session = self.gh._session
3132
self.gh = gh
3233
# propagate ssl certificate parameter
3334
self.gh._session.verify = self.session_certificate or not self.session_insecure

0 commit comments

Comments
 (0)