Viktor Oreshkin 461bb20b7c utils/git: use exact format for last_revision_*
Format for oneline can be overridden in user's gitconfig. If that's the
case, last_revision_commit_of_file won't work properly, and because of
that last_revision_of_file won't work at all.

Here's what I was getting when running brew tests:

       expected: "6bec2de"
            got: "\e[33m6bec2dee633f\e[m"

I have abbrev length set to 12, and oneline formatting is more colorful.

So, instead of relying on overrideable format, it should rather specify
"--format=%h" to get only hash, and speciy --abbrev=7 to force abbrev
length to be 7

After this commit tests are passing for me.
2018-03-12 14:07:00 +03:00
..
2018-03-08 14:10:02 +00:00
2018-03-08 14:10:02 +00:00
2018-03-08 14:10:02 +00:00
2016-09-11 19:13:00 +01:00
2017-10-18 14:39:09 +02:00
2018-01-26 21:47:33 +00:00
2017-09-24 21:23:59 +01:00
2017-08-29 16:16:17 +05:30