]> Cypherpunks repositories - gostls13.git/commit
cmd/go: handle error when git remote origin doesn't exist
authorc9s <yoanlin93@gmail.com>
Fri, 29 May 2015 17:12:35 +0000 (01:12 +0800)
committerRuss Cox <rsc@golang.org>
Sat, 27 Jun 2015 18:43:15 +0000 (18:43 +0000)
commit29ff86b05b573cd715975155092d38d063ae2276
tree56af6296d6ad6bcf98ea1a4f27be293c1c07da8a
parent258bf65d8b157bfe311ce70c93dd854022a25c9d
cmd/go: handle error when git remote origin doesn't exist

- Let runOutput return the error message
- When `git config ...` returns empty buffer, it means the config key is
  correct, but there is no corresponding value.
- Return the correct error when the url of remote origin is not found.
- Update error message

Fixes: #10922
Change-Id: I3f8880f6717a4f079b840d1249174378d36bca1b
Reviewed-on: https://go-review.googlesource.com/10475
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/get.go
src/cmd/go/vcs.go