Skip to content

Commit

Permalink
Add log
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazuel committed Apr 2, 2018
1 parent e6a7c85 commit fda4ff3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions swaggertosdk/SwaggerToSdkMain.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def generate_sdk(sdk_git_id, base_branch_name,
# Solve advanced_options now
global_conf["advanced_options"] = solve_relative_path(global_conf.get("advanced_options", {}), temp_dir)
clone_dir = Path(global_conf["advanced_options"].get("clone_dir", Path(temp_dir) / Path("sdk")))
_LOGGER.info("Clone dir will be: %s", clone_dir)

with manage_git_folder(None, clone_dir, sdk_git_id+'@'+base_branch_name) as sdk_folder:

Expand Down
1 change: 1 addition & 0 deletions swaggertosdk/SwaggerToSdkNewCLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def generate_sdk_from_git_object(git_object, branch_name, restapi_git_id, sdk_gi
# Solve advanced_options now
global_conf["advanced_options"] = solve_relative_path(global_conf.get("advanced_options", {}), temp_dir)
clone_dir = Path(global_conf["advanced_options"].get("clone_dir", Path(temp_dir) / Path("sdk")))
_LOGGER.info("Clone dir will be: %s", clone_dir)

with manage_git_folder(gh_token, Path(temp_dir) / Path("rest"), branched_rest_api_id, pr_number=pr_number) as restapi_git_folder, \
manage_git_folder(gh_token, clone_dir, branched_sdk_git_id) as sdk_folder:
Expand Down

0 comments on commit fda4ff3

Please sign in to comment.