Ignore .git directory (will be deleted otherwise) (#88)

Co-authored-by: Henry Pauli <henry@mixict.nl>
This commit is contained in:
Henry 2020-09-03 12:26:06 +02:00 committed by GitHub
parent a61055939e
commit c17afe47c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ tmp_dir=$(mktemp -d -t ci-XXXXXXXXXX)
) )
debug "Rsync contents of $WIKI_PATH" debug "Rsync contents of $WIKI_PATH"
rsync -q -a --delete "$GITHUB_WORKSPACE/$WIKI_PATH/" "$tmp_dir" rsync -q -a --delete --exclude=.git "$GITHUB_WORKSPACE/$WIKI_PATH/" "$tmp_dir"
if [ ! -r "$tmp_dir/Home.md" ]; then if [ ! -r "$tmp_dir/Home.md" ]; then
debug "Copy README.md to wiki/Home.md" debug "Copy README.md to wiki/Home.md"