mirror of
https://github.com/iwata/git-now.git
synced 2026-09-10 07:26:29 -04:00
13 lines
280 B
Bash
13 lines
280 B
Bash
#!/bin/sh
|
|
|
|
PREFIX="from now"
|
|
|
|
if [ ! "`git log --pretty=oneline $3 | head -n 1 | grep "${PREFIX}"`" ]
|
|
then
|
|
exit 0
|
|
else
|
|
echo "error: There are tmp log messages in the received objects." 1>&2
|
|
echo "error: Change these messages by 'git now --rebase'." 1>&2
|
|
exit 1
|
|
fi
|