@matheusbsbs / matheus-bagliano / commits / ce4a7bff41
Fork 0

Correct fast-export file mode strings to match fast-import standard

The fast-import file format does not expect leading '0' in front of a file mode; that is we want '100644' and '0100644'. Thanks to Ian Clatworthy of the Bazaar project for noticing the difference in output/input. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Shawn O. Pearce committed Feb 24, 2008 at 22:57 UTC ce4a7bff41c6bb4dc2d578264a429b5e13e89bdc
1 file changed +1 -1
builtin-fast-export.c
+1 -1
@@ -123,7 +123,7 @@ static void show_filemodify(struct diff_queue_struct *q,
123 printf("D %s\n", spec->path);
124 else {
125 struct object *object = lookup_object(spec->sha1);
126 - printf("M 0%06o :%d %s\n", spec->mode,
126 + printf("M %06o :%d %s\n", spec->mode,
127 get_object_mark(object), spec->path);
128 }
129 }