fatal: ambiguous argument 'master': unknown revision or path not in the working tree
The error looks like you're using a non-existent reference (branch/tag). Try specifying the correct branch and tag using the branch/tag options. You can also use the commit hash directly using ref option. 

Also ensure that your git URL is correct (your code does not contain the xxx.git part).