| | |
| | | <classpathentry kind="lib" path="ext/jetty-ajp-7.4.3.v20110701.jar" sourcepath="ext/jetty-ajp-7.4.3.v20110701-sources.jar"/> |
| | | <classpathentry kind="lib" path="ext/lucene-core-3.5.0.jar" sourcepath="ext/lucene-core-3.5.0-sources.jar"/> |
| | | <classpathentry kind="lib" path="ext/markdownpapers-core-1.2.7.jar" sourcepath="ext/markdownpapers-core-1.2.7-sources.jar"/> |
| | | <classpathentry kind="lib" path="ext/org.eclipse.jgit-1.3.0.201202151440-r.jar" sourcepath="ext/org.eclipse.jgit-1.3.0.201202151440-r-sources.jar"/> |
| | | <classpathentry kind="lib" path="ext/org.eclipse.jgit.http.server-1.3.0.201202151440-r.jar" sourcepath="ext/org.eclipse.jgit.http.server-1.3.0.201202151440-r-sources.jar"/> |
| | | <classpathentry kind="lib" path="ext/org.eclipse.jgit-2.0.0.201206130900-r.jar" sourcepath="ext/org.eclipse.jgit-2.0.0.201206130900-r-sources.jar"/> |
| | | <classpathentry kind="lib" path="ext/org.eclipse.jgit.http.server-2.0.0.201206130900-r.jar" sourcepath="ext/org.eclipse.jgit.http.server-2.0.0.201206130900-r-sources.jar"/> |
| | | <classpathentry kind="lib" path="ext/lucene-highlighter-3.5.0.jar" sourcepath="ext/lucene-highlighter-3.5.0-sources.jar"/> |
| | | <classpathentry kind="lib" path="ext/lucene-memory-3.5.0.jar" sourcepath="ext/lucene-memory-3.5.0-sources.jar"/> |
| | | <classpathentry kind="lib" path="ext/unboundid-ldapsdk-2.3.0.jar" sourcepath="ext/unboundid-ldapsdk-2.3.0-sources.jar"/> |
| | |
| | |
|
| | | // The build script extracts this exact line so be careful editing it
|
| | | // and only use A-Z a-z 0-9 .-_ in the string.
|
| | | public static final String JGIT_VERSION = "JGit 1.3.0 (201202151440-r)";
|
| | | public static final String JGIT_VERSION = "JGit 2.0.0 (201206130900-r)";
|
| | |
|
| | | public static final String ADMIN_ROLE = "#admin";
|
| | |
|
| | |
| | | import org.eclipse.jgit.lib.StoredConfig;
|
| | | import org.eclipse.jgit.storage.file.WindowCache;
|
| | | import org.eclipse.jgit.storage.file.WindowCacheConfig;
|
| | | import org.eclipse.jgit.transport.ServiceMayNotContinueException;
|
| | | import org.eclipse.jgit.transport.resolver.FileResolver;
|
| | | import org.eclipse.jgit.transport.resolver.RepositoryResolver;
|
| | | import org.eclipse.jgit.transport.resolver.ServiceNotAuthorizedException;
|
| | |
| | | logger.error("GitBlit.getRepository(String) failed to find "
|
| | | + new File(repositoriesFolder, repositoryName).getAbsolutePath(), e);
|
| | | }
|
| | | } catch (ServiceMayNotContinueException e) {
|
| | | r = null;
|
| | | if (logError) {
|
| | | logger.error("GitBlit.getRepository(String) failed to find "
|
| | | + new File(repositoriesFolder, repositoryName).getAbsolutePath(), e);
|
| | | }
|
| | | }
|
| | | return r;
|
| | | }
|
| | |
| | | logger.error("Service not authorized", e);
|
| | | } catch (ServiceNotEnabledException e) {
|
| | | logger.error("Service not enabled", e);
|
| | | } catch (ServiceMayNotContinueException e) {
|
| | | logger.error("Service may not continue", e);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | "3b7c5f3938f202311bdca0bf7ed46bc0118af081");
|
| | |
|
| | | public static final MavenObject JGIT = new MavenObject("JGit", "org/eclipse/jgit",
|
| | | "org.eclipse.jgit", "1.3.0.201202151440-r", 1532000, 1565000, 3460000,
|
| | | "a00dc524b1d1db1abbf95407aa3e6009c3d2c157",
|
| | | "68864beaa0856f539deafecf9e1fe105a7e996c3",
|
| | | "org.eclipse.jgit", "2.0.0.201206130900-r", 1600000, 1565000, 3460000,
|
| | | "c8934e903ef26ec9aa1d0d3b604979c77eda4137",
|
| | | "7e2c1486bf13e7bbdf39b68554e9010abe385c32",
|
| | | "");
|
| | |
|
| | | public static final MavenObject JGIT_HTTP = new MavenObject("JGit", "org/eclipse/jgit",
|
| | | "org.eclipse.jgit.http.server", "1.3.0.201202151440-r", 68000, 62000, 110000,
|
| | | "099468bdd59d6f4919d54d5b66022d3ec8077b29",
|
| | | "721ef2b857a7e92989a8f1ee688e361510303bb1",
|
| | | "org.eclipse.jgit.http.server", "2.0.0.201206130900-r", 68000, 62000, 110000,
|
| | | "d42535d996ccfc487092a8850e6e78d368de72d6",
|
| | | "85d5ba16db13144815634aeff31ad6c7d92107e6",
|
| | | "");
|
| | |
|
| | | public static final MavenObject JSCH = new MavenObject("JSch", "com/jcraft", "jsch",
|
| | |
| | | import java.util.Set;
|
| | | import java.util.TreeSet;
|
| | |
|
| | | import org.eclipse.jgit.JGitText;
|
| | | import org.eclipse.jgit.api.errors.ConcurrentRefUpdateException;
|
| | | import org.eclipse.jgit.api.errors.JGitInternalException;
|
| | | import org.eclipse.jgit.dircache.DirCache;
|
| | | import org.eclipse.jgit.dircache.DirCacheBuilder;
|
| | | import org.eclipse.jgit.dircache.DirCacheEntry;
|
| | | import org.eclipse.jgit.internal.JGitText;
|
| | | import org.eclipse.jgit.lib.CommitBuilder;
|
| | | import org.eclipse.jgit.lib.Constants;
|
| | | import org.eclipse.jgit.lib.FileMode;
|
| | |
| | | import java.util.Set;
|
| | | import java.util.TreeSet;
|
| | |
|
| | | import org.eclipse.jgit.JGitText;
|
| | | import org.eclipse.jgit.api.errors.ConcurrentRefUpdateException;
|
| | | import org.eclipse.jgit.api.errors.JGitInternalException;
|
| | | import org.eclipse.jgit.dircache.DirCache;
|
| | | import org.eclipse.jgit.dircache.DirCacheBuilder;
|
| | | import org.eclipse.jgit.dircache.DirCacheEntry;
|
| | | import org.eclipse.jgit.internal.JGitText;
|
| | | import org.eclipse.jgit.lib.CommitBuilder;
|
| | | import org.eclipse.jgit.lib.Constants;
|
| | | import org.eclipse.jgit.lib.FileMode;
|
| | |
| | | import org.eclipse.jgit.api.CloneCommand;
|
| | | import org.eclipse.jgit.api.FetchCommand;
|
| | | import org.eclipse.jgit.api.Git;
|
| | | import org.eclipse.jgit.api.errors.GitAPIException;
|
| | | import org.eclipse.jgit.diff.DiffEntry;
|
| | | import org.eclipse.jgit.diff.DiffEntry.ChangeType;
|
| | | import org.eclipse.jgit.diff.DiffFormatter;
|
| | |
| | | * @return Repository
|
| | | */
|
| | | public static Repository createRepository(File repositoriesFolder, String name) {
|
| | | Git git = Git.init().setDirectory(new File(repositoriesFolder, name)).setBare(true).call();
|
| | | return git.getRepository();
|
| | | try {
|
| | | Git git = Git.init().setDirectory(new File(repositoriesFolder, name)).setBare(true).call();
|
| | | return git.getRepository();
|
| | | } catch (GitAPIException e) {
|
| | | throw new RuntimeException(e);
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|