Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t5700: demonstrate a Windows file locking issue with `git clone --dissociate`
author
Johannes Schindelin
<johannes.schindelin@gmx.de>
Mon, 5 Oct 2015 20:29:59 +0000
(22:29 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 5 Oct 2015 21:43:44 +0000
(14:43 -0700)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5700-clone-reference.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
74b6763
)
diff --git
a/t/t5700-clone-reference.sh
b/t/t5700-clone-reference.sh
index 3e783fc450d21c8de6fae2cb3677e9eaebacf927..b6c056619cf70db9038b91d5d3b2269d786a138c 100755
(executable)
--- a/
t/t5700-clone-reference.sh
+++ b/
t/t5700-clone-reference.sh
@@
-214,5
+214,26
@@
test_expect_success 'clone and dissociate from reference' '
test_must_fail git -C R fsck &&
git -C S fsck
'
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
test_done