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

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

		cb()
Remote.prototype.fetch = ->
	_priv = getPrivate @
	throw new Error "Remote isn't connected." if not @connected
	[progressCb, cb] = args
		progressCb: type: "function"
		cb: type: "function"
