Add git hooks to tools
- Place these in your .git/hooks/ directory
This commit is contained in:
@@ -1 +1,3 @@
|
||||
git log -1 --pretty="format:{\"commit\": \"%H\", \"commit_short\": \"%h\", \"version\": \"%ad\", \"url\": \"https://github.com/bui/taiko-web/\"}" --date="format:%y.%m.%d" > ../version.json
|
||||
#!/bin/bash
|
||||
toplevel=$( git rev-parse --show-toplevel )
|
||||
git log -1 --pretty="format:{\"commit\": \"%H\", \"commit_short\": \"%h\", \"version\": \"%ad\"}" --date="format:%y.%m.%d" > "$toplevel/version.json"
|
||||
|
||||
Reference in New Issue
Block a user