summaryrefslogtreecommitdiff
path: root/doPull.go
diff options
context:
space:
mode:
Diffstat (limited to 'doPull.go')
-rw-r--r--doPull.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/doPull.go b/doPull.go
index 4274abf..c043ede 100644
--- a/doPull.go
+++ b/doPull.go
@@ -8,7 +8,6 @@ import (
"time"
"go.wit.com/lib/cobol"
- "go.wit.com/lib/protobuf/forgepb"
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
)
@@ -89,7 +88,7 @@ func doPull() (string, error) {
}
// below this, you must not be in 'normal' mode
- if me.forge.Mode == forgepb.ForgeMode_NORMAL {
+ if me.forge.IsModeNormal() {
s = "you must check out the devel or master branches"
return s, errors.New("wrong mode " + me.forge.GetMode())
}