update_ref() to non commit should throw

* Should mention final ref (eg HEAD goes to ref/heads/master) in first line and original passed ref (eg HEAD) in second line