Commit e769e025 by John Wiegley

Git does not like zero padded file attributes (git fsck)

parent 5bf42916
......@@ -304,7 +304,7 @@ int git_tree__writeback(git_tree *tree, git_odb_source *src)
entry = git_vector_get(&tree->entries, i);
sprintf(filemode, "%06o ", entry->attr);
sprintf(filemode, "%o ", entry->attr);
git__source_write(src, filemode, strlen(filemode));
git__source_write(src, entry->filename, strlen(entry->filename) + 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment