Commit 3bb00f3360bd11a48e1b04dc7dec971f0019891f

Vicent Marti 2013-05-02T17:17:46

refdb_fs: implement the fully-peeled trait

diff --git a/src/refdb_fs.c b/src/refdb_fs.c
index 9ee3568..8a2d563 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -678,13 +678,6 @@ static int packed_find_peel(refdb_fs_backend *backend, struct packref *ref)
 		return 0;
 
 	/*
-	 * Only applies to tags, i.e. references
-	 * in the /refs/tags folder
-	 */
-	if (git__prefixcmp(ref->name, GIT_REFS_TAGS_DIR) != 0)
-		return 0;
-
-	/*
 	 * Find the tagged object in the repository
 	 */
 	if (git_object_lookup(&object, backend->repo, &ref->oid, GIT_OBJ_ANY) < 0)
diff --git a/src/refs.h b/src/refs.h
index 908e86f..927bc83 100644
--- a/src/refs.h
+++ b/src/refs.h
@@ -26,7 +26,7 @@
 
 #define GIT_SYMREF "ref: "
 #define GIT_PACKEDREFS_FILE "packed-refs"
-#define GIT_PACKEDREFS_HEADER "# pack-refs with: peeled "
+#define GIT_PACKEDREFS_HEADER "# pack-refs with: peeled fully-peeled"
 #define GIT_PACKEDREFS_FILE_MODE 0666
 
 #define GIT_HEAD_FILE "HEAD"