Move TTY wrapper to subprocess package, makes more sense now it exists

This commit is contained in:
Steve Streeting 2016-03-17 15:05:32 +00:00
parent cb88941387
commit e0972e4efc
4 changed files with 4 additions and 4 deletions

@ -628,7 +628,7 @@ func CloneWithoutFilters(args []string) error {
cmd := subprocess.ExecCommand("git", cmdargs...)
// Assign pty/tty so git thinks it's a real terminal
tty := NewTty(cmd)
tty := subprocess.NewTty(cmd)
stdout, err := tty.Stdout()
if err != nil {
return fmt.Errorf("Failed to get stdout: %v", err)

@ -1,4 +1,4 @@
package git
package subprocess
import (
"io"

@ -1,6 +1,6 @@
// +build !windows
package git
package subprocess
import (
"os/exec"

@ -1,4 +1,4 @@
package git
package subprocess
import "os/exec"