aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/file/common_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/transport/file/common_test.go')
-rw-r--r--plumbing/transport/file/common_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/transport/file/common_test.go b/plumbing/transport/file/common_test.go
index 7e033a8..a217e97 100644
--- a/plumbing/transport/file/common_test.go
+++ b/plumbing/transport/file/common_test.go
@@ -29,8 +29,8 @@ func (s *CommonSuite) SetUpSuite(c *C) {
s.ReceivePackBin = filepath.Join(s.tmpDir, "git-receive-pack")
s.UploadPackBin = filepath.Join(s.tmpDir, "git-upload-pack")
bin := filepath.Join(s.tmpDir, "go-git")
- cmd := exec.Command("go", "build", "-o", bin,
- "../../../cli/go-git/...")
+ cmd := exec.Command("go", "build", "-o", bin)
+ cmd.Dir = "../../../cli/go-git"
c.Assert(cmd.Run(), IsNil)
c.Assert(os.Symlink(bin, s.ReceivePackBin), IsNil)
c.Assert(os.Symlink(bin, s.UploadPackBin), IsNil)