Skip to content

Commit

Permalink
[FIXED JENKINS-16914] fetch by URL, not by remote alias (that may not…
Browse files Browse the repository at this point in the history
… be set)
  • Loading branch information
ndeloof committed Feb 22, 2013
1 parent a60d390 commit 4e23a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/git/GitSCM.java
Expand Up @@ -794,7 +794,7 @@ private boolean fetchFrom(GitClient git,
RemoteConfig remoteRepository) {
try {
// Assume there is only 1 URL / refspec for simplicity
git.fetch(remoteRepository.getName(), remoteRepository.getFetchRefSpecs().get(0));
git.fetch(remoteRepository.getURIs().get(0).toPrivateString(), remoteRepository.getFetchRefSpecs().get(0));
return true;
} catch (GitException ex) {
ex.printStackTrace(listener.error(
Expand Down

0 comments on commit 4e23a5c

Please sign in to comment.