| | |
| | | package com.gitblit.git; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | import org.eclipse.jgit.transport.resolver.ServiceNotEnabledException; |
| | | import org.eclipse.jgit.transport.resolver.UploadPackFactory; |
| | | |
| | | import com.gitblit.Constants; |
| | | import com.gitblit.GitBlit; |
| | | import com.gitblit.models.UserModel; |
| | | |
| | |
| | | // JGit's RefMap is custom and does not support iterator removal :( |
| | | List<String> toRemove = new ArrayList<String>(); |
| | | for (String ref : refs.keySet()) { |
| | | if (ref.startsWith("refs/gitblit/")) { |
| | | if (ref.startsWith(Constants.R_GITBLIT)) { |
| | | toRemove.add(ref); |
| | | } |
| | | } |
| | |
| | | return refs; |
| | | } |
| | | } |
| | | } |
| | | } |