HiveBrain v1.2.0
Get Started
← Back to all entries
patterngitMinor

fatal: ambiguous argument 'master': unknown revision or path not in the working tree

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
paththeargumentunknownfatalrevisionworkingambiguousmasternot

Problem

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  [...] -- [...]'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

Solution

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).

Context

StackExchange DevOps Q#1087, answer score: 5

Revisions (0)

No revisions yet.