aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunfish <704613309@qq.com>2017-11-13 16:01:52 +0800
committerGitHub <noreply@github.com>2017-11-13 16:01:52 +0800
commita8136d248509e1a1498f48abb23acc71063d6f51 (patch)
tree5c71dfeea79f266c9298d5126879acb52cbd25fa
parentf9879dd043f84936a1f8acb8a53b74332a7ae135 (diff)
downloadgo-git-a8136d248509e1a1498f48abb23acc71063d6f51.tar.gz
fix: a range loop can break in advance
-rw-r--r--remote.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/remote.go b/remote.go
index 3e24763..f6dbceb 100644
--- a/remote.go
+++ b/remote.go
@@ -617,6 +617,7 @@ func (r *Remote) newUploadPackRequest(o *FetchOptions,
for _, s := range o.RefSpecs {
if !s.IsWildcard() {
isWildcard = false
+ break
}
}