mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-04 10:34:55 +02:00
22 lines
317 B
Bash
22 lines
317 B
Bash
#!/bin/sh
|
|
|
|
cd $1
|
|
|
|
git init
|
|
git config user.email "CI@example.com"
|
|
git config user.name "CI"
|
|
|
|
git checkout -b master
|
|
|
|
echo "file1" > file1
|
|
echo "file2" > file2
|
|
echo "disruptive" > disruptive
|
|
cat > .git/hooks/pre-commit <<EOL
|
|
#!/bin/bash
|
|
if [ -f disruptive ]; then
|
|
exit 1
|
|
fi
|
|
exit 0
|
|
EOL
|
|
chmod +x .git/hooks/pre-commit
|