We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be2904b commit 632fddbCopy full SHA for 632fddb
1 file changed
git-coauthor
@@ -82,7 +82,7 @@ function solo() {
82
}
83
84
function display_current() {
85
- local -r authors="$(cat "${COMMIT_TEMPLATE}" | grep 'Co-authored-by:' | cut -d':' -f2)"
+ local -r authors="$(grep 'Co-authored-by:' "${COMMIT_TEMPLATE}" 2>/dev/null | cut -d':' -f2)"
86
echo "CURRENT CO-AUTHORS"
87
if [[ -z "${authors}" ]]; then
88
echo "You're committing solo!"
0 commit comments