pantograph/lib/pantograph/actions/reset_git_repo.rb in pantograph-0.1.14 vs pantograph/lib/pantograph/actions/reset_git_repo.rb in pantograph-0.1.15
- old
+ new
@@ -3,10 +3,10 @@
module Pantograph
module Actions
# Does a hard reset and clean on the repo
class ResetGitRepoAction < Action
def self.run(params)
- if params[:force] || Actions.lane_context[SharedValues::GIT_REPO_WAS_CLEAN_ON_START]
+ if params[:force] || Actions.lane_context[SharedValues::ENSURE_GIT_STATUS_CLEAN]
paths = params[:files]
return paths if Helper.test?
if paths.nil?