aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-28 00:14:30 +0000
committermerakor <cem@ckyln.com>2020-05-28 00:14:30 +0000
commit25cf664937b8b0b6e291051608ddd5b6d9812612 (patch)
tree0eafc49bce631277a957348b4c0e7ce72c766b06
parentf216852698bb621ffa65a4a705b83abb4af9a89b (diff)
downloadcpt-25cf664937b8b0b6e291051608ddd5b6d9812612.tar.gz
kiss: run pre/post-pull hooks when fetching repositories
FossilOrigin-Name: ea2d5d0117a90ebd394c6abad5d905478eb482a62f37a2927143146796c4d3a3
-rwxr-xr-xkiss4
1 files changed, 4 insertions, 0 deletions
diff --git a/kiss b/kiss
index 0079437..62c716d 100755
--- a/kiss
+++ b/kiss
@@ -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
}