Signed-off-by: Olivier Matz <zer0@droids-corp.org>
#
# This hook clone and pull the repoditory each time a commit is pushed
# in the tree. Each branch will be delivered in
-# ${GIT_DELIVER_DIRECTORY}/branch.
+# ${GIT_DELIVER_DIRECTORY}/branch. If ${GIT_DELIVER_COMMAND} is set,
+# this command will be executed in the delivery directory.
# ---------------------------- Functions
unset GIT_DIR
git pull --rebase
fi
+
+ if [ ! -z "${GIT_DELIVER_COMMAND}" ]; then
+ cd ${dstdir}
+ ${GIT_DELIVER_COMMAND}
+ fi
}
# ---------------------------- main()