fix compilation
authorPavel Sher <pavel.sher@gmail.com>
Sat, 23 Nov 2013 11:40:26 +0000 (12:40 +0100)
committerPavel Sher <pavel.sher@gmail.com>
Sat, 23 Nov 2013 11:40:26 +0000 (12:40 +0100)
git-server/src/jetbrains/buildServer/buildTriggers/vcs/git/GitUrlSupport.java

index 7f5b386c6da8853d974b2097967d393a93f2b0a9..3c1cb48745f4aa1d6ffe940a58618cf4b147cd7f 100644 (file)
@@ -56,7 +56,7 @@ public class GitUrlSupport implements UrlSupport {
     Map<String, String> result = new HashMap<String, String>();
     result.put(Constants.FETCH_URL, vcsUrl.getProviderSpecificPart());
     if (credentials != null) {
-      result.put(Constants.USERNAME, vcsUrl.getUsername());
+      result.put(Constants.USERNAME, credentials.getUsername());
     }
     final boolean scpSyntax = isScpSyntax(uri);
     if (scpSyntax || "ssh".equals(uri.getScheme())) {