提交 b8041fe4 编写于 作者: J Junio C Hamano

Sparse-directory safety fix.

This will be removed when merging the second phase of Linus' "Create
object subdirectories on demand" change anyway, but the code to
recreate the empty .git/objects/??/ directory was confused.
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 f865a2ad
......@@ -27,7 +27,7 @@ static void prune_dir(int i, DIR *dir, char *pathname, int len)
error("unable to unlink %s", pathname);
}
pathname[len] = 0;
if (rmdir(pathname))
if (!rmdir(pathname))
mkdir(pathname, 0777);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册