Use force-removal of .git
Otherwise it may hang with message like rm: remove write-protected regular file `tests/bot-ci/.git/objects/pack/pack-589af67feed5a0f1d2c4cfb43325ab5165539bcc.pack'?
This commit is contained in:
parent
37a0c4dd24
commit
24176882ab
|
@ -17,7 +17,7 @@ checkout_cached_dir() {
|
|||
if ! test -d "$target" ; then
|
||||
git clone --depth=1 "$url" "$target"
|
||||
mv "$target"/.git/refs/heads/master .version
|
||||
rm -r "$target"/.git
|
||||
rm -rf "$target"/.git
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue