diff options
author | Clark Boylan <clark.boylan@gmail.com> | 2022-02-17 15:57:06 -0800 |
---|---|---|
committer | Clark Boylan <clark.boylan@gmail.com> | 2022-02-17 15:57:06 -0800 |
commit | 21b75586a38c8f2e92503394ee1dad059f4f26bd (patch) | |
tree | a1f9a6aeb79afbe5715e4c99b9c6eae075a8e104 | |
parent | 4045c7c9a6fb26431479c546f323ab4ad9792f4e (diff) |
Fix the ${hash} substitution for diff file web links
It seems that when we were refactoring this change to address review
comments we accidentally swapped out the ${hash} replacement for a
revision replacement. Fix this by swapping it back to a hash replacement
which was the intended behavior.
Note we skip release notes as this addresses a bug in a recent change
that should have accurate release notes already.
Release-Notes: skip
Change-Id: I0b1c56d9aa80b0014e26f2a2385df90b1f5ae413
-rw-r--r-- | java/com/google/gerrit/server/config/GitwebConfig.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/google/gerrit/server/config/GitwebConfig.java b/java/com/google/gerrit/server/config/GitwebConfig.java index 40b5a8bbcc..0bc4380319 100644 --- a/java/com/google/gerrit/server/config/GitwebConfig.java +++ b/java/com/google/gerrit/server/config/GitwebConfig.java @@ -321,7 +321,7 @@ public class GitwebConfig { return link( file.replace("project", encode(projectName)) .replace("commit", encode(revision)) - .replace("hash", encode(revision)) + .replace("hash", encode(hash)) .replace("file", encode(fileName)) .toString()); } |