File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 222
222
dco_command 'sign -y mybranch'
223
223
224
224
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
235
228
236
229
expect ( subject . exitstatus ) . to eq 0
237
230
expect ( subject . stdout ) . to match /^Stashing uncommited changes before continuing$/
You can’t perform that action at this time.
0 commit comments