Fix repository log for tag as ref

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>