Skip to content

Commit

Permalink
Pass proxy to gitlocal when not pulling from gitlab.com (#15)
Browse files Browse the repository at this point in the history
* Pass proxy to gitlocal when not pulling from gitlab.com
* Remove empty line
  • Loading branch information
aaboyd authored May 8, 2024
1 parent cec5379 commit 1c2bdd4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tap_gitlab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,7 @@ def do_sync():
gitLocal = GitLocal({
'access_token': CONFIG['private_token'],
'workingDir': '/tmp',
'proxy': os.environ.get("MINWARE_PROXY") if not domain.endswith('gitlab.com') else None
}, 'https://oauth2:{}@' + domain + '/{}.git',
CONFIG['hmac_token'] if 'hmac_token' in CONFIG else None)

Expand Down Expand Up @@ -1301,8 +1302,6 @@ def main_impl():
CATALOG = args.catalog if args.catalog else do_discover(select_all=True)
do_sync()

LOGGER.info(str(CATALOG))

def main():
try:
main_impl()
Expand Down

0 comments on commit 1c2bdd4

Please sign in to comment.