contrib: add a wrapper to be able to check deploys use up-to-date git#198
contrib: add a wrapper to be able to check deploys use up-to-date git#198lf- wants to merge 1 commit intozhaofengli:mainfrom
Conversation
This is adapted from an internal project. It's a simple solution that probably has wider applicability than just our little project.
e844780 to
92b1fdf
Compare
| echo >&2 | ||
| echo "Attempting to deploy when @upstream_branch@ has $only_in_main commits not in your branch!" >&2 | ||
| echo "This will probably revert someone's changes. Consider merging them." >&2 | ||
| echo "If you really mean it, set the environment variable FOOTGUN_ME_UWU" >&2 |
|
I think adding just few lines with different license than original project license makes it more problematic than it helps. |
This is marked as CC0, as in, you can use it for literally any purpose and destroy the license comment on it for all it matters. It is under the project license because it's public domain. |
This is adapted from an internal project. It's a simple solution that probably has wider applicability than just our little project. I put it in contrib/ to make it clear it is a script that might be useful but isn't like, part of the software.
Usage: copy to your repo, put
(pkgs.callPackage ./somewhere/colmena-wrapper {})in place of colmena in your dev shell.