pull --rebase: exit early when the working directory is dirty
[gitweb.git] / builtin-pack-objects.c
index 4a0c9c907b5e67379ea826a366522a6af7df1e5f..e20851e1c9c9ad517314794b7c8d4e3615afa9c5 100644 (file)
@@ -1486,7 +1486,7 @@ static void find_deltas(struct object_entry **list, unsigned *list_size,
                 * depth, leaving it in the window is pointless.  we
                 * should evict it first.
                 */
-               if (entry->delta && depth <= n->depth)
+               if (entry->delta && max_depth <= n->depth)
                        continue;
 
                /*