aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
authorOri Rawlings <orirawlings@gmail.com>2017-11-13 06:48:46 -0600
committerGitHub <noreply@github.com>2017-11-13 06:48:46 -0600
commit786939ebc99e92bc96f3118ec93afec1f794b4a3 (patch)
treec7c264e7e8525bf7572dee19ac8b92ec26cd9e57 /remote.go
parente2791ac8605432dbdc5085fc165ace2c9e487f23 (diff)
parenta8136d248509e1a1498f48abb23acc71063d6f51 (diff)
downloadgo-git-786939ebc99e92bc96f3118ec93afec1f794b4a3.tar.gz
Merge pull request #641 from sunfishgao/patch-1
fix: a range loop can break in advance
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/remote.go b/remote.go
index 3718813..8d1f31e 100644
--- a/remote.go
+++ b/remote.go
@@ -737,6 +737,7 @@ func (r *Remote) newUploadPackRequest(o *FetchOptions,
for _, s := range o.RefSpecs {
if !s.IsWildcard() {
isWildcard = false
+ break
}
}