Learn more about cloning repositories
You have read-only access
Remove superfluous fuction. There is no difference between those two, as both will return the local components xml file. The test for bundle is superfluous, we just need to know the target directory.