WIP: Output warning when git-hook is outdated
What does this MR do?
This MR adds a new file common-functions
with a function check_remote_file_for_updates
which outputs a warning message if the local git-hook script doesn't match the remote git-hook script.
What are the relevant issue numbers?
Does this MR meet the acceptance criteria?
-
Tests added for this feature/bug -
When there are local changes to
go.mod
orgo.sum
that haven't been committed,go mod tidy
stage fails as expected:ERROR: local changes to go.mod and go.sum exist, please commit the changes before pushing.
-
When there are no local changes to
go.mod
orgo.sum
that haven't been committed,go mod tidy
stage succeeds as expected.
-
Edited by Adam Cohen