I\'m getting the warning
warning: You did not specify any refspecs to push, and the current remote warning: has not configured any push refspecs. The default
It doesn't sound like that was your problem, but to actually answer the question you asked in the title: you can run...
$ git rev-parse --is-bare-repository
...to query if a repo is bare or not. Returns 'true' or 'false'.