aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/file/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/transport/file/common.go')
-rw-r--r--plumbing/transport/file/common.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/plumbing/transport/file/common.go b/plumbing/transport/file/common.go
index 8697121..e7d18b2 100644
--- a/plumbing/transport/file/common.go
+++ b/plumbing/transport/file/common.go
@@ -69,6 +69,10 @@ func (c *command) StdoutPipe() (io.Reader, error) {
// Close waits for the command to exit.
func (c *command) Close() error {
+ if c.closed {
+ return nil
+ }
+
return c.cmd.Process.Kill()
}