Skip to content

Commit fd30f81

Browse files
committed
Log remote info in pre-push hook
1 parent 0e2b2ac commit fd30f81

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

git-hooks/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
remote="$1"
2323
url="$2"
2424

25+
if [ -n "$remote" ] || [ -n "$url" ]; then
26+
printf 'Preparing to push to remote "%s" (%s)\n' "$remote" "$url"
27+
fi
28+
2529
pass=true
2630
RED='\033[1;31m'
2731
GREEN='\033[0;32m'

0 commit comments

Comments
 (0)