diff options
Diffstat (limited to 'modules/git/remote.go')
-rw-r--r-- | modules/git/remote.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/remote.go b/modules/git/remote.go index dfd0686d8b..536b1681ce 100644 --- a/modules/git/remote.go +++ b/modules/git/remote.go @@ -22,7 +22,7 @@ func GetRemoteAddress(ctx context.Context, repoPath, remoteName string) (*url.UR cmd = NewCommand(ctx, "config", "--get", "remote."+remoteName+".url") } - result, err := cmd.RunInDir(repoPath) + result, _, err := cmd.RunStdString(&RunOpts{Dir: repoPath}) if err != nil { return nil, err } |