From 11d1b7ffcb40681e2a6a0ba821c2430971d7ed35 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 5 Sep 2022 10:58:27 -0300 Subject: [PATCH] [Diff] Now the link contains the git point name and the hash Related to #276 --- kibot/out_diff.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kibot/out_diff.py b/kibot/out_diff.py index 44fe9c93..7269fc75 100644 --- a/kibot/out_diff.py +++ b/kibot/out_diff.py @@ -202,12 +202,13 @@ class DiffOptions(BaseOptions): self.branch = self.run_git(['rev-parse', 'HEAD']) logger.debug('Current branch is '+self.branch) # Checkout the target + name_ori = name name = self.solve_git_name(name) logger.debug('Changing to '+name) self.run_git(['checkout', '--recurse-submodules', name]) self.checkedout = True # A short version of the current hash - self.git_hash = self.run_git(['rev-parse', '--short', 'HEAD']) + self.git_hash = '{}({})'.format(name_ori, self.run_git(['rev-parse', '--short', 'HEAD'])) # Populate the cache hash = self.cache_file() finally: