    # File lib/chef/provider/git.rb, line 171
          def target_revision
            @target_revision ||= begin
              assert_revision_not_remote

              if sha_hash?(@new_resource.revision)
                @target_revision = @new_resource.revision
              else
                resolved_reference = remote_resolve_reference
                @target_revision = extract_revision(resolved_reference)
              end
            end
          end