mach-nix/git-hooks/pre-commit

8 lines
177 B
Text
Raw Permalink Normal View History

2021-03-12 05:31:06 +00:00
#!/usr/bin/env bash
2022-02-04 02:56:51 +00:00
currBranch="$(git branch --show-current)"
if [ $currBranch == "master" ]; then
echo -n "$currBranch" > ./mach_nix/VERSION
git add ./mach_nix/VERSION
fi