[RFC 2/3] Delete reflogs for dead references to allow pruning
- From
mhagger@alum.mit.edu <mhagger@alum.mit.edu>
- Date
- Aug 18, 2012, 17:14 UTC
- Message-ID
- <1345310086-20089-3-git-send-email-mhagger@alum.mit.edu>
- In-Reply-To
- <1345310086-20089-1-git-send-email-mhagger@alum.mit.edu>
From: Michael Haggerty <mhagger@alum.mit.edu>
This test is broken by "retain reflogs for deleted refs". Explicitly delete the reflogs in the graveyard to allow the corresponding commits to be pruned.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> ---
Probably there should be a "git reflog" subcommand to do this.
t/t9300-fast-import.sh | 1 + 1 file changed, 1 insertion(+)
diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh index 266ae30..dc6c67d 100755 --- a/t/t9300-fast-import.sh +++ b/t/t9300-fast-import.sh @@ -1700,6 +1700,7 @@ INPUT_END test_expect_success 'P: verbatim SHA gitlinks' ' git branch -D sub && + rm -rf .git/logs/graveyard && git gc && git prune && git fast-import <input && test $(git rev-parse --verify subuse2) = $(git rev-parse --verify subuse1)
-- 1.7.11.3