From 0505eef78da720e7d528d1bb5139296270b6f746 Mon Sep 17 00:00:00 2001 From: Jonathan Simms Date: Thu, 27 Feb 2020 23:47:26 -0500 Subject: [PATCH] Resolves issue #541 - typo in error code 'ErrAmbigious' I've added an additional constant with the correct spelling. I did this rather than removing the existing constant to avoid breaking existing code with the misspelled name. --- git.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git.go b/git.go index 968d404..0459dde 100644 --- a/git.go +++ b/git.go @@ -61,6 +61,8 @@ const ( // Object exists preventing operation ErrExists ErrorCode = C.GIT_EEXISTS // More than one object matches + ErrAmbiguous ErrorCode = C.GIT_EAMBIGUOUS + // (backwards compatibility misspelling) ErrAmbigious ErrorCode = C.GIT_EAMBIGUOUS // Output buffer too short to hold data ErrBuffs ErrorCode = C.GIT_EBUFS -- 2.45.2