Browse Source

fixed tf regex for counts

bmallred 10 years ago
parent
commit
9a519cec18
1 changed files with 2 additions and 2 deletions
  1. 2 2
      code-notify.go

+ 2 - 2
code-notify.go

@ -28,7 +28,7 @@ func main() {
28 28
	}
29 29
30 30
	// Loop through the repositories on an interval
31
	interval := 15 * time.Minute
31
	interval := 1 * time.Minute
32 32
	doEvery(interval, func() {
33 33
		c := hunter(root)
34 34
@ -112,7 +112,7 @@ func gatherer(directory string) {
112 112
			re = regexp.MustCompile("changeset")
113 113
			break
114 114
		case base == ".tf":
115
			re = regexp.MustCompile("revno")
115
			re = regexp.MustCompile("[\r\n]([0-9]+)")
116 116
			break
117 117
		case base == ".bzr":
118 118
			re = regexp.MustCompile("commit")