diff --git a/git/pty.go b/git/pty.go index 87c7f304..3ada2152 100644 --- a/git/pty.go +++ b/git/pty.go @@ -19,7 +19,7 @@ type Tty struct { func (t *Tty) Close() { if t.outtty != nil { - t.outpty.Close() + t.outtty.Close() t.outtty = nil } if t.errtty != nil {