diff options
author | merakor <cem@ckyln.com> | 2020-05-28 00:14:30 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-05-28 00:14:30 +0000 |
commit | 25cf664937b8b0b6e291051608ddd5b6d9812612 (patch) | |
tree | 0eafc49bce631277a957348b4c0e7ce72c766b06 /kiss | |
parent | f216852698bb621ffa65a4a705b83abb4af9a89b (diff) | |
download | cpt-25cf664937b8b0b6e291051608ddd5b6d9812612.tar.gz |
kiss: run pre/post-pull hooks when fetching repositories
FossilOrigin-Name: ea2d5d0117a90ebd394c6abad5d905478eb482a62f37a2927143146796c4d3a3
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1233,6 +1233,8 @@ pkg_fetch() { *) log "$PWD" " " ;; esac + run_hook pre-pull '' "$PWD" + if [ -w "$PWD" ] && [ "$uid" != 0 ]; then git fetch git merge @@ -1266,6 +1268,8 @@ pkg_fetch() { user=$user as_root sh -c "$git_cmd" ) fi + + run_hook post-pull '' "$PWD" } done } |