On Thu, Jul 24, 2014 at 2:59 AM, Junio C Hamano gits...@pobox.com wrote:
It does not explain what the change to the test is about, though.
The old test and code are wrong. We want to verify repos are not
pruned if they're new (like, just created). But git prune without
--expire sets expire time
There's a code path in prune_repo_dir() that does not initialize 'st'
buffer, which is checked by the caller, prune_repos_dir(). Instead
of leaking some prune logic out to prune_repos_dir(), move 'st' into
prune_repo_dir().
Signed-off-by: Nguyễn Thái Ngọc Duy pclo...@gmail.com
---
Nguyễn Thái Ngọc Duy pclo...@gmail.com writes:
There's a code path in prune_repo_dir() that does not initialize 'st'
buffer, which is checked by the caller, prune_repos_dir(). Instead
of leaking some prune logic out to prune_repos_dir(), move 'st' into
prune_repo_dir().
Signed-off-by:
3 matches
Mail list logo