Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Call mkpathdup() rather than xstrdup(mkpath(...))
[gitweb.git]
/
builtin
/
prune.c
diff --git
a/builtin/prune.c
b/builtin/prune.c
index b99b635e44f6145395b5c761505099c0a0f5b6cc..f66ff676eb283692304c99e77d12b325d9f4a7b3 100644
(file)
--- a/
builtin/prune.c
+++ b/
builtin/prune.c
@@
-168,7
+168,7
@@
int cmd_prune(int argc, const char **argv, const char *prefix)
prune_packed_objects(show_only);
remove_temporary_files(get_object_directory());
- s =
xstrdup(mkpath("%s/pack", get_object_directory()
));
+ s =
mkpathdup("%s/pack", get_object_directory(
));
remove_temporary_files(s);
free(s);
return 0;