pcrone: créer les fichiers .gitignore et .gitattributes

This commit is contained in:
Jephté Clain 2018-03-14 09:59:34 +04:00
parent 3c8b6f8d5f
commit daafe41e63
1 changed files with 9 additions and 1 deletions

View File

@ -475,7 +475,15 @@ elif [ "$CMD" == crone ]; then
else
die "bug: mode non prévu"
fi
git_annex_initial "$destdir" || die
if ask_yesno "Voulez-vous créer des fichiers .gitignore et .gitattributes initiaux?" O; then
echo >"$destdir/.gitignore"
echo >"$destdir/.gitattributes" "\
*.zip -delta
*.gz -delta
*.bz2 -delta
*.whl -delta
*.exe -delta"
fi
elif [ "$CMD" == xconfig-export ]; then
unset GIT_DIR; unset GIT_WORK_TREE