mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
add pre-hook to test credentials panel
This commit is contained in:
parent
4886b8350e
commit
c56b303b29
1 changed files with 22 additions and 0 deletions
22
test/hooks/pre-push
Normal file
22
test/hooks/pre-push
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue