summaryrefslogtreecommitdiff
path: root/GitRepo.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-12-14 12:46:09 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-12-14 12:46:09 -0400
commit5d4052d0e05d391d2ebd167b528133ade726eb3b (patch)
treeff9798c19f11c3867c1d9ee1fd0a7d4e80924222 /GitRepo.hs
parent5ec3cea05961e4d9fc3484746860415126db5365 (diff)
Support remotes using git+ssh and ssh+git as protocol. Closes: #607056
Diffstat (limited to 'GitRepo.hs')
-rw-r--r--GitRepo.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/GitRepo.hs b/GitRepo.hs
index 3cbeae192..1ce6b8aec 100644
--- a/GitRepo.hs
+++ b/GitRepo.hs
@@ -122,7 +122,9 @@ repoIsUrl _ = False
repoIsSsh :: Repo -> Bool
repoIsSsh Repo { location = Url url }
| uriScheme url == "ssh:" = True
+ -- git treats these the same as ssh
| uriScheme url == "git+ssh:" = True
+ | uriScheme url == "ssh+git:" = True
| otherwise = False
repoIsSsh _ = False