As evident below, the check to see if a repository already exists in the database is done by name, thus preventing different repositories of the same name to be added. Find some unique identifier or pair with the owner or something.
Lines 216-229 of client/user.js:
else if (repo_add_repo_name && repo_add_handle) {
var repo_doc = RepositoryList.findOne({ "name":repo_add_repo_name });
if (repo_doc) {
// found repository in the database so just connect the current user
$("#join-repo-modal").modal("hide");
linkUserToRepo(repo_add_handle, repo_doc);
}
else {
// existing repository not found
add_new_repo_flag = true;
add_new_repo_dep.changed();
return false;
}
}
As evident below, the check to see if a repository already exists in the database is done by name, thus preventing different repositories of the same name to be added. Find some unique identifier or pair with the owner or something.
Lines 216-229 of client/user.js: