aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.http.server
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-01-23 11:11:06 -0800
committerShawn O. Pearce <spearce@spearce.org>2010-01-23 11:11:12 -0800
commit3103abe4e2fe6792a1eb4908726002f6105d09f0 (patch)
tree1336aeaae86392c792d64d86f8bbf9824620b827 /org.eclipse.jgit.http.server
parent407fe631aec08ec4b0f24462b3fa2cee67a83914 (diff)
parent36f05a9c27e6961b10df0b65014ffc869f4f8686 (diff)
downloadjgit-3103abe4e2fe6792a1eb4908726002f6105d09f0.tar.gz
jgit-3103abe4e2fe6792a1eb4908726002f6105d09f0.zip
Merge branch 'ref-abstract'
* ref-abstract: Optimize RefAdvertiser performance by avoiding sorting branch: Add -m option to rename a branch Replace writeSymref with RefUpdate.link Rewrite reference handling to be abstract and accurate Create new RefList and RefMap utility types Change-Id: If43aacf5aa4013edbd0a6e84d84c4f9e94de5be0
Diffstat (limited to 'org.eclipse.jgit.http.server')
-rw-r--r--org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/InfoRefsServlet.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/InfoRefsServlet.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/InfoRefsServlet.java
index 7bad517170..b766196fdc 100644
--- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/InfoRefsServlet.java
+++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/InfoRefsServlet.java
@@ -47,7 +47,6 @@ import static org.eclipse.jgit.http.server.ServletUtils.getRepository;
import static org.eclipse.jgit.http.server.ServletUtils.send;
import java.io.IOException;
-import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServlet;
@@ -98,9 +97,9 @@ class InfoRefsServlet extends HttpServlet {
adv.init(walk, ADVERTISED);
adv.setDerefTags(true);
- Map<String, Ref> refs = new HashMap<String, Ref>(db.getAllRefs());
+ Map<String, Ref> refs = db.getAllRefs();
refs.remove(Constants.HEAD);
- adv.send(refs.values());
+ adv.send(refs);
return out.toString().getBytes(Constants.CHARACTER_ENCODING);
}
}