Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2020-11-12 16:39:55 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2020-11-17 10:07:45 +0300
commit4096e3181f0eea370ddab4c82313527c6ced8fa4 (patch)
tree1e9d5172ce40d2fb96f2f49beafff77bd41f0deb
parent8a1827994ee35afc7b49a62e714546b111711fb2 (diff)
testhelper: Remove spurious write of temporary file
The testhelper seems to contain a leftover debug statement which always writes hook contents into `/tmp/file`. This commit removes that leftover artifact.
-rw-r--r--internal/testhelper/testhelper.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/testhelper/testhelper.go b/internal/testhelper/testhelper.go
index a933dbd1d..a8fbf966b 100644
--- a/internal/testhelper/testhelper.go
+++ b/internal/testhelper/testhelper.go
@@ -908,8 +908,6 @@ STDIN.each_line do |line|
end
`, command.GitPath())
- ioutil.WriteFile("/tmp/file", []byte(hook), 0644)
-
cleanup, err := WriteCustomHook(repoPath, "pre-receive", []byte(hook))
require.NoError(t, err)