1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-02-03 13:21:56 +02:00

add pre-hook to test credentials panel

This commit is contained in:
Jesse Duffield 2018-12-16 17:55:37 +11:00
parent 4886b8350e
commit c56b303b29

22
test/hooks/pre-push Normal file
View File

@ -0,0 +1,22 @@
#!/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
# echo "failed"
# exit 1
exit 0