commit | 248fa84a4fc20f1854f23b249e794305fc7c03c9 | [log] [tgz] |
---|---|---|
author | Michael McClimon <michael@mcclimon.org> | Mon Sep 25 22:01:08 2023 +0000 |
committer | Gopher Robot <gobot@golang.org> | Mon Oct 02 23:53:24 2023 +0000 |
tree | 96f65e70d0862b65041f0bd9ad7b2bd7bbffc2d1 | |
parent | cd520cc22eb4e07de471770390762fc7cf2cdc11 [diff] |
gotip: don't assume origin as the git remote name When running "gotip download", we try to update the gotip working tree by running several git commands with the hard-coded name "origin". The name "origin" is the default in git, but this is configurable, so it's not necessarily safe to assume that a remote named "origin" will always exist. We can, however, force the name "origin" when doing the initial clone, so that later git operations that interact with the remote can safely assume that the name "origin" exists. This isn't totally reliable, because if a user manually renames the remote, the commands that assume "origin" will still fail. This change, though, ensures that the default configuration will work even if a user has set clone.defaultRemoteName in their local git configuration. Change-Id: I387bac2b8090f7070c1e4833dcc6362bf708c1f6 GitHub-Last-Rev: a7e2ce9ec0b8726dcabac718940e7658e1ff3d61 GitHub-Pull-Request: golang/dl#11 Reviewed-on: https://go-review.googlesource.com/c/dl/+/506696 Auto-Submit: Bryan Mills <bcmills@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Bypass: Ian Lance Taylor <iant@google.com> Commit-Queue: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Commit-Queue: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This repository holds the Go wrapper programs that run specific versions of Go, such as go install golang.org/dl/go1.10.3@latest
and go install golang.org/dl/gotip@latest
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with “dl:” in the subject line, so it is easy to find.