Fix Branch.new method for branch origin/HEAD because it points on ref instead of commit

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

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