summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'common.go')
-rw-r--r--common.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/common.go b/common.go
new file mode 100644
index 0000000..cd88d45
--- /dev/null
+++ b/common.go
@@ -0,0 +1,23 @@
+package gitpb
+
+import "go.wit.com/log"
+
+func (repo *Repo) SetReadOnly(b bool) {
+ repo.ReadOnly = b
+}
+
+func (repo *Repo) SetTargetVersion(target string) {
+ repo.TargetVersion = target
+}
+
+func (repo *Repo) SetMasterBranchName(s string) {
+ log.Info("gitpb.SetMaster() SET MASTER TO", s)
+ repo.MasterBranchName = s
+}
+
+func (repo *Repo) GetGoPath() string {
+ if repo.GoInfo == nil {
+ return ""
+ }
+ return repo.GoInfo.GoPath
+}