Conan: Use "scm" revision mode when exporting from .git repository


We have two use cases where the conan export is being executed:
  - Conan export from src tar ball
    - .git directory is not present
  - Coin/CI: conan export from git repository

The "scm" feature will not work if the ".git" repository does not
exist. If this is the case then use the default "hash" mode for the
recipe revision.

Pick-to: 6.1
Change-Id: If84835613855afc00c79eab4a382dc256d87cd08
Reviewed-by: Toni Saario <toni.saario@qt.io>
commit04a3129c52b64d4c53b7a13cc525a38153e3eca1
parent1dad32e9428cdf42a1d0c6b7fd0d22b641602568
authorIikka Eklund <iikka.eklund@qt.io>
committerIikka Eklund <iikka.eklund@qt.io>
commit timeTue, 13 Apr 2021 08:05:44 +0200