Move TTY wrapper to subprocess package, makes more sense now it exists
This commit is contained in:
parent
cb88941387
commit
e0972e4efc
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user