Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Documentation: clarify git-checkout -f, minor editing
[gitweb.git]
/
convert-objects.c
diff --git
a/convert-objects.c
b/convert-objects.c
index 4809f9199fa21dcd95ab508e26196080d49e8e88..cf03bcfe5aa4f95ec4b6384bc38d63b1e453f731 100644
(file)
--- a/
convert-objects.c
+++ b/
convert-objects.c
@@
-88,7
+88,7
@@
static int write_subdirectory(void *buffer, unsigned long size, const char *base
unsigned int mode;
char *slash, *origpath;
- if (!path || s
scanf(buffer, "%o"
, &mode) != 1)
+ if (!path || s
trtoul_ui(buffer, 8
, &mode) != 1)
die("bad tree conversion");
mode = convert_mode(mode);
path++;