diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2020-11-12 16:39:55 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2020-11-17 10:07:45 +0300 |
commit | 4096e3181f0eea370ddab4c82313527c6ced8fa4 (patch) | |
tree | 1e9d5172ce40d2fb96f2f49beafff77bd41f0deb /internal/testhelper/testhelper.go | |
parent | 8a1827994ee35afc7b49a62e714546b111711fb2 (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.
Diffstat (limited to 'internal/testhelper/testhelper.go')
-rw-r--r-- | internal/testhelper/testhelper.go | 2 |
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) |