diff options
author | James Moger <james.moger@gitblit.com> | 2011-09-25 09:45:45 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-09-25 09:45:45 -0400 |
commit | dd9ae71bc1cb13b90dcc8d9689550eb7dfe7d035 (patch) | |
tree | f2fba4e206618bcbe30d2b8e7a9911001fcc6e0e /src/com/gitblit/models/FederationProposal.java | |
parent | c729c59cedff4e800c659e524081fbd1be8db3c1 (diff) | |
download | gitblit-dd9ae71bc1cb13b90dcc8d9689550eb7dfe7d035.tar.gz gitblit-dd9ae71bc1cb13b90dcc8d9689550eb7dfe7d035.zip |
Revised federation proposal mechanism. Added SendProposalPage.
Diffstat (limited to 'src/com/gitblit/models/FederationProposal.java')
-rw-r--r-- | src/com/gitblit/models/FederationProposal.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/gitblit/models/FederationProposal.java b/src/com/gitblit/models/FederationProposal.java index 03b31ce7..5cf9182c 100644 --- a/src/com/gitblit/models/FederationProposal.java +++ b/src/com/gitblit/models/FederationProposal.java @@ -37,6 +37,8 @@ public class FederationProposal implements Serializable { public FederationToken tokenType;
public String token;
+
+ public String message;
public Map<String, RepositoryModel> repositories;
@@ -59,6 +61,7 @@ public class FederationProposal implements Serializable { this.url = url;
this.tokenType = tokenType;
this.token = token;
+ this.message = "";
this.repositories = repositories;
try {
// determine server name and set that as the proposal name
@@ -66,7 +69,7 @@ public class FederationProposal implements Serializable { if (name.contains("/")) {
name = name.substring(0, name.indexOf('/'));
}
- name = name.replace(".", "");
+ name = name.replace(".", "").replace(";", "").replace(":", "").replace("-", "");
} catch (Exception e) {
name = Long.toHexString(System.currentTimeMillis());
}
|