mirror of
https://github.com/yuukiwww/taiko-web.git
synced 2024-10-22 17:05:49 +02:00
96b1ba4b04
- Place these in your .git/hooks/ directory
4 lines
206 B
Bash
Executable File
4 lines
206 B
Bash
Executable File
#!/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"
|