diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2008-02-24 22:57:29 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-24 20:09:54 -0800 |
commit | ce4a7bff41c6bb4dc2d578264a429b5e13e89bdc (patch) | |
tree | 47d4dd768dda5557272feb22cfb41a91ad53b317 /builtin-fast-export.c | |
parent | 8c87dc77ae45d7277001b1be2c88ea9062e11d72 (diff) | |
download | git-ce4a7bff41c6bb4dc2d578264a429b5e13e89bdc.tar.gz |
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>
Diffstat (limited to 'builtin-fast-export.c')
-rwxr-xr-x | builtin-fast-export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-fast-export.c b/builtin-fast-export.c index ef27eee71b..724cff35d3 100755 --- a/builtin-fast-export.c +++ b/builtin-fast-export.c @@ -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); } } |