aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAyman Bagabas <ayman.bagabas@gmail.com>2023-11-07 12:42:10 -0500
committerAyman Bagabas <ayman.bagabas@gmail.com>2023-11-07 12:42:10 -0500
commitfbc6d7f5d37846133ca92dabf2e2115fcee06e19 (patch)
tree7cad067b59c5d1e9742b935f993c04dff2bc6a2a
parente40360644f4a6e368e916db5a930c17c47f64a78 (diff)
downloadgo-git-fbc6d7f5d37846133ca92dabf2e2115fcee06e19.tar.gz
build: fix go-git binary build
-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)