if the user name is available, pass that in and save a lookup

This commit is contained in:
Kohsuke Kawaguchi
2013-04-23 10:05:06 -07:00
parent c6fafe453f
commit 60175ebfad

View File

@@ -116,7 +116,7 @@ public class GitHub {
}
String oauth = props.getProperty("oauth");
if (oauth!=null)
return new GitHub(GITHUB_URL,null, oauth,null);
return new GitHub(GITHUB_URL,props.getProperty("login"), oauth,null);
else
return new GitHub(props.getProperty("login"),props.getProperty("token"),props.getProperty("password"));
}