I'm using git 1.8.4 and trying to add a submodule that tracks master of another repository. I tried adding it as follows:
git submodule add -b master /path/to/myrepo.git
And I get the following error when I try to add it
Cloning into 'myrepo.git'...
warning: You appear to have cloned an empty repository.
done.
fatal: Cannot update paths and switch to branch 'master' at the same time.
Did you intend to checkout 'origin/master' which can not be resolved as commit?
Unable to checkout submodule 'myrepo'
I'm not sure what this means...can someone explain?