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:
parent
81959bb644
commit
838c1cd50d
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user