diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/distrib/data/clientapps.json | 11 | ||||
-rw-r--r-- | src/main/java/com/gitblit/Constants.java | 7 | ||||
-rw-r--r-- | src/main/resources/tortoise32.png | bin | 0 -> 1225 bytes |
3 files changed, 17 insertions, 1 deletions
diff --git a/src/main/distrib/data/clientapps.json b/src/main/distrib/data/clientapps.json index a19cbcc8..b5c25f17 100644 --- a/src/main/distrib/data/clientapps.json +++ b/src/main/distrib/data/clientapps.json @@ -89,5 +89,16 @@ "icon": "sparkleshare_32x32.png",
"minimumPermission" : "RW+",
"isActive": false
+ },
+ {
+ "name": "TortoiseGit",
+ "title": "TortoiseGit",
+ "description": "Windows Shell Interface to Git",
+ "legal": "released under the GPLv2 open source license",
+ "cloneUrl": "tgit://clone/${repoUrl}",
+ "productUrl": "http://www.tortoisegit.org",
+ "platforms": [ "windows" ],
+ "icon": "tortoise32.png",
+ "isActive": true
}
]
\ No newline at end of file diff --git a/src/main/java/com/gitblit/Constants.java b/src/main/java/com/gitblit/Constants.java index 4b9755f3..a5e76a51 100644 --- a/src/main/java/com/gitblit/Constants.java +++ b/src/main/java/com/gitblit/Constants.java @@ -556,7 +556,12 @@ public class Constants { }
public static Transport fromUrl(String url) {
- String scheme = url.substring(0, url.indexOf("://"));
+ int delim = url.indexOf("://");
+ if (delim == -1) {
+ // if no protocol is specified, SSH is assumed by git clients
+ return SSH;
+ }
+ String scheme = url.substring(0, delim);
return fromString(scheme);
}
}
diff --git a/src/main/resources/tortoise32.png b/src/main/resources/tortoise32.png Binary files differnew file mode 100644 index 00000000..40aa9786 --- /dev/null +++ b/src/main/resources/tortoise32.png |