Skip to content

Commit

Permalink
[Fixed][Diff] Link name for git diffs
Browse files Browse the repository at this point in the history
- Also adapted file test to new name
  • Loading branch information
set-soft committed Sep 9, 2022
1 parent e871efe commit 8776953
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kibot/out_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ def cache_git(self, name):
self.checkedout = True
else:
name_ori = 'Dirty' if self.git_dirty() else 'HEAD'
# A short version of the current hash
self.git_hash = self.get_git_point_desc(name_ori)
# Populate the cache
hash = self.cache_file()
# A short version of the current hash
self.git_hash = self.get_git_point_desc(name_ori)
finally:
self.undo_git()
return hash
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plot/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1410,6 +1410,6 @@ def test_diff_file_sch_1(test_dir):
yaml = 'diff_file_sch_'+('k5' if context.ki5() else 'k6')
ctx = context.TestContext(test_dir, prj, yaml)
ctx.run()
ctx.expect_out_file(prj+'-diff_sch_None-None.pdf')
ctx.expect_out_file(prj+'-diff_sch_FILE-Current.pdf')
ctx.compare_pdf(prj+'-diff_sch.pdf')
ctx.clean_up(keep_project=True)

0 comments on commit 8776953

Please sign in to comment.