Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Commit

Permalink
Removed unused exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
buckett authored and magnayn committed Apr 20, 2010
1 parent ee33b7a commit 4aeec26
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions src/main/java/hudson/plugins/git/GitSCM.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import java.io.IOException;
import java.io.Serializable;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
Expand Down Expand Up @@ -148,21 +147,15 @@ public Object readResolve() {
mergeOptions = new PreBuildMergeOptions();


try {
remoteRepositories.add(newRemoteConfig("origin", source, new RefSpec("+refs/heads/*:refs/remotes/origin/*") ));
} catch (URISyntaxException e) {
// We gave it our best shot
if( branch != null )
{
branches.add(new BranchSpec(branch));
}
else
{
branches.add(new BranchSpec("*/master"));
}

if( branch != null )
{
branches.add(new BranchSpec(branch));
}
else
{
branches.add(new BranchSpec("*/master"));
}

}


Expand Down Expand Up @@ -344,7 +337,7 @@ private void fetchFrom(IGitAPI git, File workspace, TaskListener listener,

}

public RemoteConfig getSubmoduleRepository(RemoteConfig orig, String name) throws URISyntaxException
public RemoteConfig getSubmoduleRepository(RemoteConfig orig, String name)
{
// Attempt to guess the submodule URL??

Expand All @@ -366,7 +359,7 @@ public RemoteConfig getSubmoduleRepository(RemoteConfig orig, String name) throw
return newRemoteConfig(name, refUrl, orig.getFetchRefSpecs().get(0) );
}

private RemoteConfig newRemoteConfig(String name, String refUrl, RefSpec refSpec) throws URISyntaxException
private RemoteConfig newRemoteConfig(String name, String refUrl, RefSpec refSpec)
{

File temp = null;
Expand Down

0 comments on commit 4aeec26

Please sign in to comment.