I just saw that PullCommand does the following:

		merge.include("branch \'" + remoteBranchName + "\' of " + remoteUri,
				commitToMerge);

So we already get the right remote URI from the Ref, I have to check if this case is handled properly in MergeMessageFormatter.