Skip to content

Commit

Permalink
add pre-commit hook for VERSION file
Browse files Browse the repository at this point in the history
  • Loading branch information
DavHau committed Mar 12, 2021
1 parent 42020f8 commit 42abe60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions git-hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

echo -n "$(git branch --show-current)" > ./mach_nix/VERSION
git add ./mach_nix/VERSION
1 change: 1 addition & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ mkShell {
];
shellHook = ''
export PYTHONPATH=$(pwd)/
git config core.hooksPath ./git-hooks
'';
}

0 comments on commit 42abe60

Please sign in to comment.