I would like my post-receive hook to be responsible for updating a version file in the repo
itself, under certain conditions. So, suppose I have a file version.txt in my repository,
I would like the post receive hook to update a version string inside version.txt.
That would mean another push to the repo. Is this possible?
Thanks!
I would rather not try to make any further commit/push, but use a filter driver in order, on checkout/update to be able to generate the right content for that
version.txtfile (i.e. with the right version string inside)The
smudgescript, if it is able to recognized the content of aversion.txtfile (i.e. it won’t have the name/path of said file as parameter), would replace a template section of that file with the right information.