From 2aea094ac8deefe12a4faceacb1bbdc33f25f623 Mon Sep 17 00:00:00 2001
From: Tamer Tas <contact@tmrts.com>
Date: Mon, 27 Feb 2017 11:51:58 +0300
Subject: [PATCH] pkg/util/git: import util pkg for git methods

---
 pkg/util/git/git.go | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 pkg/util/git/git.go

diff --git a/pkg/util/git/git.go b/pkg/util/git/git.go
new file mode 100644
index 0000000..b0a7e08
--- /dev/null
+++ b/pkg/util/git/git.go
@@ -0,0 +1,15 @@
+// Package git is a facade for git methods used by boilr
+package git
+
+import git "srcd.works/go-git.v4"
+
+// CloneOptions are used when cloning a git repository
+type CloneOptions git.CloneOptions
+
+// Clone clones a git repository with the given options
+func Clone(dir string, opts CloneOptions) error {
+	o := git.CloneOptions(opts)
+
+	_, err := git.PlainClone(dir, false, &o)
+	return err
+}
-- 
GitLab