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:
authorRussell Belfer <rb@github.com>2013-05-02 02:08:12 +0400
committerRussell Belfer <rb@github.com>2013-05-02 02:08:12 +0400
commit41e93563e7462bd37cf3a09b8aaac35736046482 (patch)
treec3d0a67ac9f3607a46147c94895247c655002306 /src/refs.c
parent62caf3f38fa25537b5f824329d8f88875ee837f2 (diff)
Error messages for a couple other boundary conditions
Diffstat (limited to 'src/refs.c')
-rw-r--r--src/refs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/refs.c b/src/refs.c
index b85a2e828..8bba3941e 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -844,8 +844,10 @@ static int reference__update_terminal(
git_reference *ref;
int error = 0;
- if (nesting > MAX_NESTING_LEVEL)
+ if (nesting > MAX_NESTING_LEVEL) {
+ giterr_set(GITERR_REFERENCE, "Reference chain too deep (%d)", nesting);
return GIT_ENOTFOUND;
+ }
error = git_reference_lookup(&ref, repo, ref_name);