Skip to content

Commit

Permalink
refactor: stay on deployment branch after generating the history repo…
Browse files Browse the repository at this point in the history
…rt (#640)
  • Loading branch information
ChristianLieven committed Apr 8, 2019
1 parent 693cd75 commit 955b308
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions memote/suite/cli/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ def history(location, model, filename, deployment, custom_config):
"The history report requires a git repository in order to check "
"the model's commit history.")
sys.exit(1)
previous = repo.active_branch
LOGGER.info("Obtaining history of results from "
"the deployment branch {}.".format(deployment))
repo.git.checkout(deployment)
Expand All @@ -171,7 +170,6 @@ def history(location, model, filename, deployment, custom_config):
history.load_history(model, skip={deployment})
LOGGER.info("Composing the history report.")
report = api.history_report(history, config=config)
previous.checkout()
with open(filename, "w", encoding="utf-8") as file_handle:
file_handle.write(report)

Expand Down

0 comments on commit 955b308

Please sign in to comment.