def restore_working_tree
      result = Overcommit::Utils.execute(%w[git stash pop --index --quiet])
      unless result.success?
        raise Overcommit::Exceptions::HookCleanupFailed,
              "Unable to restore working tree after #{hook_script_name} hooks run:" \
              "\nSTDOUT:#{result.stdout}\nSTDERR:#{result.stderr}"
      end
    end
def restore_working_tree
      result = Overcommit::Utils.execute(%w[git stash pop --index --quiet])
      unless result.success?
        raise Overcommit::Exceptions::HookCleanupFailed,
              "Unable to restore working tree after #{hook_script_name} hooks run:" \
              "\nSTDOUT:#{result.stdout}\nSTDERR:#{result.stderr}"
      end
    end
Applies the stash to the working tree to restore the user's state.