mirror of
https://github.com/git/git.git
synced 2026-02-07 08:15:23 +00:00
Demonstrate a Windows file locking issue with git clone --dissociate
On Windows, dissociating from a reference can fail very easily due to pack files that are still in use when they want to be removed. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -188,5 +188,26 @@ test_expect_success 'clone and dissociate from reference' '
|
||||
test_must_fail git -C R fsck &&
|
||||
git -C S fsck
|
||||
'
|
||||
test_expect_failure MINGW 'clone, dissociate from partial reference and repack' '
|
||||
rm -fr P Q R &&
|
||||
git init P &&
|
||||
(
|
||||
cd P &&
|
||||
test_commit one &&
|
||||
git repack &&
|
||||
test_commit two &&
|
||||
git repack
|
||||
) &&
|
||||
git clone --bare P Q &&
|
||||
(
|
||||
cd P &&
|
||||
git checkout -b second &&
|
||||
test_commit three &&
|
||||
git repack
|
||||
) &&
|
||||
git clone --bare --dissociate --reference=P Q R &&
|
||||
ls R/objects/pack/*.pack >packs.txt &&
|
||||
test_line_count = 1 packs.txt
|
||||
'
|
||||
|
||||
test_done
|
||||
|
||||
Reference in New Issue
Block a user