1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00

fix: revert unwanted change

This commit is contained in:
Carlos Alexandro Becker 2018-08-15 00:28:58 -03:00
parent 81959bb644
commit 838c1cd50d
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -11,11 +11,7 @@ import (
// remoteRepo gets the repo name from the Git config.
func remoteRepo() (result config.Repo, err error) {
isRepo, err := git.IsRepo()
if err != nil {
return result, err
}
if !isRepo {
if !git.IsRepo() {
return result, errors.New("current folder is not a git repository")
}
out, err := git.Run("config", "--get", "remote.origin.url")