Skip to content

Commit 0505eef

Browse files
committed
Resolves issue libgit2#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.
1 parent 93c4c5b commit 0505eef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ const (
6161
// Object exists preventing operation
6262
ErrExists ErrorCode = C.GIT_EEXISTS
6363
// More than one object matches
64+
ErrAmbiguous ErrorCode = C.GIT_EAMBIGUOUS
65+
// (backwards compatibility misspelling)
6466
ErrAmbigious ErrorCode = C.GIT_EAMBIGUOUS
6567
// Output buffer too short to hold data
6668
ErrBuffs ErrorCode = C.GIT_EBUFS

0 commit comments

Comments
 (0)