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

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

		.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) ->
