diff options
author | James Moger <james.moger@gitblit.com> | 2012-12-21 17:35:18 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-12-21 17:35:18 -0500 |
commit | b2d0287b3f424c7f9ada44834365bf909db62a50 (patch) | |
tree | 8b121b27aba638a00814c9524a8ef91ccfc4985d /src | |
parent | 7b0f3069ec3011650c9628b6e17c01d5e845ca46 (diff) | |
download | gitblit-b2d0287b3f424c7f9ada44834365bf909db62a50.tar.gz gitblit-b2d0287b3f424c7f9ada44834365bf909db62a50.zip |
Fixed regression in isFrozen (issue 181)
Diffstat (limited to 'src')
-rw-r--r-- | src/com/gitblit/GitServlet.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/gitblit/GitServlet.java b/src/com/gitblit/GitServlet.java index 42d88c91..94a51be0 100644 --- a/src/com/gitblit/GitServlet.java +++ b/src/com/gitblit/GitServlet.java @@ -124,6 +124,10 @@ public class GitServlet extends org.eclipse.jgit.http.server.GitServlet { rp.setAllowDeletes(user.canDeleteRef(repository));
rp.setAllowNonFastForwards(user.canRewindRef(repository));
+ if (repository.isFrozen) {
+ throw new ServiceNotEnabledException();
+ }
+
return rp;
}
});
|