1) In klone(), checkout "master" along with other branches so a diff works. 2) curl to get liveHash instead of file_get_contents (security settings may not allow file_get_contents to get remote files