fatal: ambiguous argument 'master': unknown revision or path not in the working tree when I modified one of my cookbook that I tried to add a cookbook dependency in berks file

cookbook name, '=0.1.0', git: 'ssh://url:xxx/cookbook', tag: '0.0.1'


and then tried to converge it which throws an error 

'fatal: ambiguous argument 'master': unknown revision or path not in the working tree.use '--' to separate paths from revisions, like this:git &lt;command&gt; [&lt;revision&gt;...] -- [&lt;file&gt;...]'on test


I don't have much clue to explain even..but I can post my explanation as we go. I appreciate your help thank you
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).