Enable rewrite as well as rename detection in git-status
[gitweb.git] / builtin-pack-objects.c
index 545ece5da75672f435d018ccb534bc8c342bbf3d..4f446588ac9ce9d8aa50d0c288817a16855422e6 100644 (file)
@@ -990,7 +990,7 @@ static void add_pbase_object(struct tree_desc *tree,
                        return;
                if (name[cmplen] != '/') {
                        add_object_entry(entry.sha1,
-                                        S_ISDIR(entry.mode) ? OBJ_TREE : OBJ_BLOB,
+                                        object_type(entry.mode),
                                         fullname, 1);
                        return;
                }