Skip to content

Commit b1a3e88

Browse files
committed
Okay, let's try this.
1 parent 5d328fe commit b1a3e88

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

Diff for: spec/sign_spec.rb

+3-10
Original file line numberDiff line numberDiff line change
@@ -222,16 +222,9 @@
222222
dco_command 'sign -y mybranch'
223223

224224
it do
225-
puts("UNCOMMITTED CHANGES OUTPUT #{subject.stdout.inspect} #{subject.stderr.inspect}")
226-
puts("STASH FILE? #{Dir.entries(File.join(temp_path, '.git/logs/refs')).inspect}")
227-
puts(File.stat(File.join(temp_path, '.git/logs/refs/stash')).inspect)
228-
puts("HANDLE #{command("C:\\handle.exe -accepteula stash").stdout}")
229-
# For some reason, windows leaves this file here?
230-
stash_path = File.join(temp_path, '.git/logs/refs/stash')
231-
if File.exist?(stash_path)
232-
File.rename(stash_path, stash_path+'.bak')
233-
File.unlink(stash_path+'.bak')
234-
end
225+
require 'rbconfig'
226+
puts("HANDLE #{command("C:\\handle.exe -accepteula stash").stdout}") if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
227+
GC.start
235228

236229
expect(subject.exitstatus).to eq 0
237230
expect(subject.stdout).to match /^Stashing uncommited changes before continuing$/

0 commit comments

Comments
 (0)