From c8e1bd66178899766ae4fa3ccc5146d2c325b09d Mon Sep 17 00:00:00 2001 From: Mark Fayngersh Date: Thu, 15 Oct 2015 15:15:35 -0400 Subject: [PATCH] Fix unit test --- shared/build/build_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/build/build_test.go b/shared/build/build_test.go index 2367202a5..adaaf7d87 100644 --- a/shared/build/build_test.go +++ b/shared/build/build_test.go @@ -594,7 +594,7 @@ func TestWriteBuildScript(t *testing.T) { f.WriteEnv("CI_PULL_REQUEST", "123") f.WriteHost("127.0.0.1") f.WriteFile("$HOME/.ssh/id_rsa", []byte("ssh-rsa AAA..."), 600) - f.WriteCmd("git clone --depth=0 --recursive git://github.com/drone/drone.git /var/cache/drone/github.com/drone/drone") + f.WriteCmd("git clone --depth=0 --recursive --branch=master git://github.com/drone/drone.git /var/cache/drone/github.com/drone/drone") f.WriteCmd("git fetch origin +refs/pull/123/head:refs/remotes/origin/pr/123") f.WriteCmd("git checkout -qf -b pr/123 origin/pr/123")