mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
21 lines
295 B
Bash
21 lines
295 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 "test" > file1
|
|
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
|