summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-04-28 15:03:45 -0400
committerJames Moger <james.moger@gitblit.com>2014-04-28 15:03:45 -0400
commit55dc95d6015dfb980a118a3f2aec2c43c773e90a (patch)
tree266d2262ed2c21b94b7164e49e7a2b2374c9c4b7
parentd6bfbd28a092a164f0a6220234fd3e9b68e3d832 (diff)
downloadgitblit-55dc95d6015dfb980a118a3f2aec2c43c773e90a.tar.gz
gitblit-55dc95d6015dfb980a118a3f2aec2c43c773e90a.zip
Fix bug introduced in 67278f5
-rw-r--r--releases.moxie1
-rw-r--r--src/main/java/com/gitblit/models/PluginRegistry.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/releases.moxie b/releases.moxie
index 41719dfc..a08763e7 100644
--- a/releases.moxie
+++ b/releases.moxie
@@ -26,6 +26,7 @@ r23: {
- Ralph Hoffman
- Olivier Rouits
- Owen Nelson
+ - Alexander Zabluda
}
#
diff --git a/src/main/java/com/gitblit/models/PluginRegistry.java b/src/main/java/com/gitblit/models/PluginRegistry.java
index 8da34578..3f692bcb 100644
--- a/src/main/java/com/gitblit/models/PluginRegistry.java
+++ b/src/main/java/com/gitblit/models/PluginRegistry.java
@@ -126,7 +126,7 @@ public class PluginRegistry implements Serializable {
Version ir = Version.createVersion(installedRelease);
Version cr = Version.ZERO;
PluginRelease curr = getCurrentRelease(system);
- if (cr != null) {
+ if (curr != null) {
cr = Version.createVersion(curr.version);
}
switch (ir.compareTo(cr)) {