Skip to content

Commit ce4a7bf

Browse files
spearcegitster
authored andcommitted
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>
1 parent 8c87dc7 commit ce4a7bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin-fast-export.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static void show_filemodify(struct diff_queue_struct *q,
123123
printf("D %s\n", spec->path);
124124
else {
125125
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,
127127
get_object_mark(object), spec->path);
128128
}
129129
}

0 commit comments

Comments
 (0)