Skip to content

Commit

Permalink
Correct fast-export file mode strings to match fast-import standard
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
spearce authored and gitster committed Feb 25, 2008
1 parent 8c87dc7 commit ce4a7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-fast-export.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static void show_filemodify(struct diff_queue_struct *q,
printf("D %s\n", spec->path);
else {
struct object *object = lookup_object(spec->sha1);
printf("M 0%06o :%d %s\n", spec->mode,
printf("M %06o :%d %s\n", spec->mode,
get_object_mark(object), spec->path);
}
}
Expand Down

0 comments on commit ce4a7bf

Please sign in to comment.