mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
Merge branch 'master' into feature/rebasing
This commit is contained in:
commit
3d343e9b57
57 changed files with 1496 additions and 174 deletions
25
test/hooks/pre-push
Normal file
25
test/hooks/pre-push
Normal file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
# test pre-push hook for testing the lazygit credentials view
|
||||
#
|
||||
# to enable, use:
|
||||
# chmod +x .git/hooks/pre-push
|
||||
#
|
||||
# this will hang if you're using git from the command line, so only enable this
|
||||
# when you are testing the credentials view in lazygit
|
||||
|
||||
exec < /dev/tty
|
||||
|
||||
echo -n "Username for 'github': "
|
||||
read username
|
||||
|
||||
echo -n "Password for 'github': "
|
||||
read password
|
||||
|
||||
if [ "$username" = "username" -a "$password" = "password" ]; then
|
||||
echo "success"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
>&2 echo "incorrect username/password"
|
||||
exit 1
|
Loading…
Add table
Add a link
Reference in a new issue