Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2011 IBM Corporation and others |
2 |
* Copyright (c) 2011, 2012 IBM Corporation and others |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 27-32
import org.eclipse.jgit.lib.Constants;
Link Here
|
27 |
import org.eclipse.jgit.lib.ObjectId; |
27 |
import org.eclipse.jgit.lib.ObjectId; |
28 |
import org.eclipse.jgit.lib.Repository; |
28 |
import org.eclipse.jgit.lib.Repository; |
29 |
import org.eclipse.jgit.revwalk.RevCommit; |
29 |
import org.eclipse.jgit.revwalk.RevCommit; |
|
|
30 |
import org.eclipse.jgit.storage.file.FileBasedConfig; |
30 |
import org.eclipse.jgit.transport.RemoteRefUpdate.Status; |
31 |
import org.eclipse.jgit.transport.RemoteRefUpdate.Status; |
31 |
import org.eclipse.jgit.transport.URIish; |
32 |
import org.eclipse.jgit.transport.URIish; |
32 |
import org.eclipse.orion.internal.server.core.IOUtilities; |
33 |
import org.eclipse.orion.internal.server.core.IOUtilities; |
Lines 510-515
public class GitFetchTest extends GitTest {
Link Here
|
510 |
|
511 |
|
511 |
@Test |
512 |
@Test |
512 |
public void testForcedFetch() throws Exception { |
513 |
public void testForcedFetch() throws Exception { |
|
|
514 |
// overwrite system settings, allow forced pushes, see bug 371881 |
515 |
FileBasedConfig cfg = db.getConfig(); |
516 |
cfg.setBoolean("receive", null, "denyNonFastforwards", false); |
517 |
cfg.save(); |
518 |
|
513 |
URI workspaceLocation = createWorkspace(getMethodName()); |
519 |
URI workspaceLocation = createWorkspace(getMethodName()); |
514 |
JSONObject projectTop1 = createProjectOrLink(workspaceLocation, getMethodName() + "-top1", null); |
520 |
JSONObject projectTop1 = createProjectOrLink(workspaceLocation, getMethodName() + "-top1", null); |
515 |
IPath clonePathTop1 = new Path("file").append(projectTop1.getString(ProtocolConstants.KEY_ID)).makeAbsolute(); |
521 |
IPath clonePathTop1 = new Path("file").append(projectTop1.getString(ProtocolConstants.KEY_ID)).makeAbsolute(); |