commit | 9ac60cf29d9aff6e720a0f6dfd153a1f58e605e3 | [log] [tgz] |
---|---|---|
author | Han-Wen Nienhuys <hanwen@google.com> | Tue Aug 02 16:15:44 2016 +0200 |
committer | Han-Wen Nienhuys <hanwen@google.com> | Tue Aug 02 16:15:44 2016 +0200 |
tree | 0f86f896c30b98bffe4a2e18397d5d5a07538b98 | |
parent | 0ca5de88b07ee0a659269205382d6c061fcc9e9d [diff] |
Use regexp.MatchString rather regexp.FindString() != "". Change-Id: I12f4f7a6e4ac96be33a00bcb8fd0154735b3225b
diff --git a/fs/gitilesfs.go b/fs/gitilesfs.go index 1c0ee46..8f4287d 100644 --- a/fs/gitilesfs.go +++ b/fs/gitilesfs.go
@@ -396,7 +396,7 @@ clone := r.opts.CloneURL != "" if clone { for _, e := range r.opts.CloneOption { - if e.RE.FindString(p) != "" { + if e.RE.MatchString(p) { clone = e.Clone break }