summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/models
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-04-02 11:44:31 -0400
committerJames Moger <james.moger@gitblit.com>2014-04-10 19:01:30 -0400
commite9872c8ca4d9af41794a851f2f81ed21c65bb85b (patch)
treea930742d0ba584e82c8aa617c65debee92d0196e /src/main/java/com/gitblit/models
parentf7e97712b5c4edd72cad1e8e54490de02a766224 (diff)
downloadgitblit-e9872c8ca4d9af41794a851f2f81ed21c65bb85b.tar.gz
gitblit-e9872c8ca4d9af41794a851f2f81ed21c65bb85b.zip
Allow specifying accepted PUSH transports
Diffstat (limited to 'src/main/java/com/gitblit/models')
-rw-r--r--src/main/java/com/gitblit/models/RepositoryUrl.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/models/RepositoryUrl.java b/src/main/java/com/gitblit/models/RepositoryUrl.java
index a24def57..d155dbda 100644
--- a/src/main/java/com/gitblit/models/RepositoryUrl.java
+++ b/src/main/java/com/gitblit/models/RepositoryUrl.java
@@ -18,6 +18,7 @@ package com.gitblit.models;
import java.io.Serializable;
import com.gitblit.Constants.AccessPermission;
+import com.gitblit.Constants.Transport;
/**
* Represents a git repository url and it's associated access permission for the
@@ -30,10 +31,12 @@ public class RepositoryUrl implements Serializable {
private static final long serialVersionUID = 1L;
+ public final Transport transport;
public final String url;
public final AccessPermission permission;
public RepositoryUrl(String url, AccessPermission permission) {
+ this.transport = Transport.fromUrl(url);
this.url = url;
this.permission = permission;
}