 		name: type: "string"
 		resolve: type: "bool"
 		cb: type: "function"
-	nativeRepo.reference name, resolve, cb
+	_priv.native.reference name, resolve, cb
 Repository.prototype.ref = Repository.prototype.reference
 Repository.prototype.remote = ->
 	_priv = getPrivate @

		for ref, oid of refs
			continue if ref is "HEAD"
			if oid is headOid
				headRef = fetchSpec.transformTo ref
				immutable(@, {headRef}).set "headRef", "HEAD"
				break


		.set("dst")
	return @
Refspec.prototype.matchesSrc = (ref) ->
	_priv = getPrivate @
	return false if ref.length <= _priv.srcRoot.length
	return ref.indexOf(_priv.srcRoot) is 0
Refspec.prototype.matchesDst = (ref) ->
	_priv = getPrivate @
	return false if ref.length <= _priv.dstRoot.length
	return ref.indexOf(_priv.dstRoot) is 0
Refspec.prototype.transformTo = (ref) ->
