diff options
author | James Moger <james.moger@gitblit.com> | 2014-04-02 11:44:31 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-04-10 19:01:30 -0400 |
commit | e9872c8ca4d9af41794a851f2f81ed21c65bb85b (patch) | |
tree | a930742d0ba584e82c8aa617c65debee92d0196e /src/main/java/com/gitblit/models | |
parent | f7e97712b5c4edd72cad1e8e54490de02a766224 (diff) | |
download | gitblit-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.java | 3 |
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;
}
|