Skip to content

Commit 6ab5116

Browse files
committed
Silence noisy ProtectedBranches integration test output
We want our test runs to be free of noise, and this test was outputting: fatal: ambiguous argument '': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' Fix with simple redirection.
1 parent 72e5a92 commit 6ab5116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/integration/protected_branches_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
end
5454

5555
shared_context 'local branch up-to-date' do
56-
before { `git rebase --keep-empty origin/#{remote_ref}` }
56+
before { `git rebase --keep-empty origin/#{remote_ref} > #{File::NULL} 2>&1` }
5757
end
5858

5959
shared_context 'ProtectedBranches enabled' do

0 commit comments

Comments
 (0)