fix warnings that "dir not in version control" and generate version.cpp ...

...with commit log when using git,rather than svn.
能保证blade项目根目录就是git目录吗？