lib/dpl/provider.rb in dpl-1.4.9.travis.151.2 vs lib/dpl/provider.rb in dpl-1.4.9.travis.163.2

- old
+ new

@@ -105,11 +105,17 @@ @sha ||= ENV['TRAVIS_COMMIT'] || `git rev-parse HEAD`.strip end def cleanup return if options[:skip_cleanup] - context.shell "git reset --hard #{sha}" - context.shell "git clean -dffqx -e .dpl" + context.shell "mv .dpl ~/dpl" + context.shell "git stash --all" + context.shell "mv ~/dpl .dpl" + end + + def uncleanup + return if options[:skip_cleanup] + context.shell "git stash pop" end def needs_key? true end