From 98229b25a05208892ad228370fba40a59870e860 Mon Sep 17 00:00:00 2001 From: Seb Date: Sun, 26 Oct 2014 01:45:52 +0200 Subject: [PATCH] support for gitlab fix for #627 --- shared/build/repo/repo.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shared/build/repo/repo.go b/shared/build/repo/repo.go index 0a5746ee..82973efa 100644 --- a/shared/build/repo/repo.go +++ b/shared/build/repo/repo.go @@ -50,6 +50,8 @@ func (r *Repo) IsRemote() bool { return true case strings.HasPrefix(r.Path, "git@"): return true + case strings.HasPrefix(r.Path, "gitlab@"): + return true case strings.HasPrefix(r.Path, "http://"): return true case strings.HasPrefix(r.Path, "https://"): @@ -77,6 +79,10 @@ func (r *Repo) IsGit() bool { return true case strings.HasPrefix(r.Path, "ssh://git@"): return true + case strings.HasPrefix(r.Path, "gitlab@"): + return true + case strings.HasPrefix(r.Path, "ssh://gitlab@"): + return true case strings.HasPrefix(r.Path, "https://github"): return true case strings.HasPrefix(r.Path, "http://github"):