mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-05-22 10:15:43 +02:00
af0cdf6d6e
Our most recent change to the script (58309b02a9) broke it because the
anchored regex's no longer match the beginning of the subject. Fix this by
omitting the hash, which is a bit unfortunate but probably acceptable (I rarely
look at the output of the script anyway).
15 lines
350 B
Bash
Executable File
15 lines
350 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# We will have only done a shallow clone, so the git log will consist only of
|
|
# commits on the current PR
|
|
commits=$(git log --format="%s" | egrep '(^fixup!|^squash!|^amend!|WIP|DROPME)')
|
|
|
|
if [ -z "$commits" ]; then
|
|
echo "No fixup commits found."
|
|
exit 0
|
|
else
|
|
echo "Fixup or WIP commits found:"
|
|
echo "$commits"
|
|
exit 1
|
|
fi
|