• Russ Cox's avatar
    cmd/go: do not try to understand git fetch --depth=1 errors · 12d0a288
    Russ Cox authored
    We used to try a git fetch --depth=1 of a specific hash and
    distinguish between an error meaning
    "that's not a hash I can give you directly"
    (in which case we fall through and pull the whole repo)
    and some other error like connection failure, bad ssh key
    (in which case we give up).
    
    We've had repeated problems trying to understand the
    error meanings so just stop doing that, and fall back to
    trying a full fetch on any error at all. If the error really
    was some kind of network or auth or i/o problem, then
    it will happen the second time and we can report it then.
    
    Fixes #26894.
    
    Change-Id: If1eaaddb87e8bfeff7a3894cce4ecef39802198c
    Reviewed-on: https://go-review.googlesource.com/128904
    Run-TryBot: Russ Cox <rsc@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBryan C. Mills <bcmills@google.com>
    12d0a288
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...