diff options
Diffstat (limited to 'repo/hooks/update-custom')
-rwxr-xr-x | repo/hooks/update-custom | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/repo/hooks/update-custom b/repo/hooks/update-custom new file mode 100755 index 00000000..b7875e4b --- /dev/null +++ b/repo/hooks/update-custom @@ -0,0 +1,14 @@ +# +# Local customizations for git update hook begin here. +# We'll need a valid absolute path before ciabot.py. +# + +ciabot.py ${refname} $(git rev-list ${oldrev}..${newrev} | tac) + +cdto=$(git rev-parse --show-cdup) +echo "Path to base directory: $cdto" +echo "Files modified:" +for filename in `git diff --name-only ${oldrev} ${newrev}` +do + echo "Source path: $filename" +done |