Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-05-18 03:48:50 +0400
committerVicent Martí <tanoku@gmail.com>2012-05-18 03:48:50 +0400
commit904b67e69fa15b7a3246e43b3d78645ffa2331f6 (patch)
tree3be54c31248759ba27a08cef52558385116d9b19 /src/refspec.c
parente172cf082e62aa421703080d0bccb7b8762c8bd4 (diff)
errors: Rename error codesbreaking-changes
Diffstat (limited to 'src/refspec.c')
-rw-r--r--src/refspec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/refspec.c b/src/refspec.c
index adb162df9..697b1bf87 100644
--- a/src/refspec.c
+++ b/src/refspec.c
@@ -68,7 +68,7 @@ int git_refspec_transform(char *out, size_t outlen, const git_refspec *spec, con
baselen = strlen(spec->dst);
if (outlen <= baselen) {
giterr_set(GITERR_INVALID, "Reference name too long");
- return GIT_SHORTBUFFER;
+ return GIT_EBUFS;
}
/*
@@ -90,7 +90,7 @@ int git_refspec_transform(char *out, size_t outlen, const git_refspec *spec, con
if (outlen <= baselen + namelen) {
giterr_set(GITERR_INVALID, "Reference name too long");
- return GIT_SHORTBUFFER;
+ return GIT_EBUFS;
}
memcpy(out, spec->dst, baselen);