Use a fixed string instead of os.hostname()

This commit is contained in:
Hideki Nakamura
2017-12-20 19:44:57 +09:00
parent c24b0c6bb4
commit 2ea2af7d2a
3 changed files with 3 additions and 3 deletions

View File

@@ -704,7 +704,7 @@ function createProject(user, metadata) {
auth = authCache.get(project,originRemote.url,username);
}
else if (originRemote.hasOwnProperty("key_file") && originRemote.hasOwnProperty("passphrase")) {
var key_file_name = (username === '_') ? os.hostname() + '_' + originRemote.key_file : username + '_' + originRemote.key_file;
var key_file_name = (username === '_') ? '.default' + '_' + originRemote.key_file : username + '_' + originRemote.key_file;
authCache.set(project,originRemote.url,username,{ // TODO: hardcoded remote name
key_path: fspath.join(projectsDir, ".sshkeys", key_file_name),
passphrase: originRemote.passphrase