2011-10-16 14:02:30 +02:00
|
|
|
#!/bin/sh
|
2011-03-04 02:14:06 +01:00
|
|
|
|
|
|
|
# sample pre-git hook to print pending hub requests
|
|
|
|
|
|
|
|
[ "$1" = "R" ] && exit 0 # we only want to print them on pushes
|
|
|
|
|
|
|
|
# print 'fetched' and 'pending' requests only
|
|
|
|
SSH_ORIGINAL_COMMAND="hub list-requests $GL_REPO fetched pending" $GL_BINDIR/gl-auth-command $GL_USER
|
|
|
|
|
|
|
|
exit 0
|