Removed redundant call to c'git_dob_hash
Re-ordered two functions calls, for safety