Commit 28d2ea1d28555b0ca6a218ad47ec875c51cd0507

Edward Thomson 2022-06-11T16:50:56

Merge pull request #6305 from zawata/fix_refdb_error_msg refs: fix missing error message

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/libgit2/refdb_fs.c b/src/libgit2/refdb_fs.c
index ef85016..0f49b16 100644
--- a/src/libgit2/refdb_fs.c
+++ b/src/libgit2/refdb_fs.c
@@ -740,7 +740,7 @@ static int packed_lookup(
 			return 0;
 		}
 	}
-	return GIT_ENOTFOUND;
+	return ref_error_notfound(ref_name);
 
 parse_failed:
 	git_error_set(GIT_ERROR_REFERENCE, "corrupted packed references file");