Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102699073
D28016.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
755 B
Referenced Files
None
Subscribers
None
D28016.diff
View Options
diff --git a/tools/tools/git/hooks/prepare-commit-msg b/tools/tools/git/hooks/prepare-commit-msg
--- a/tools/tools/git/hooks/prepare-commit-msg
+++ b/tools/tools/git/hooks/prepare-commit-msg
@@ -13,13 +13,13 @@
# It appears git invokes this script for interactive rebase but does
# not remove commented lines, so just exit if we're not called with the
# default (comment-containing) template.
- egrep -q '^#' "$1" || return 0
+ grep -E -q '^#' "$1" || exit 0
;;
template)
- return 0
+ exit 0
;;
merge)
- return 0
+ exit 0
;;
esac
@@ -58,7 +58,7 @@
#
# "Pull Request" and "Differential Revision" require the *full* GitHub or
# Phabricator URL.
-$(awk '/^#$/,EOF' $1)
+$(awk '/^#$/,EOF' "$1")
EOF
-mv $outfile $1
+mv "$outfile" "$1"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 12:45 AM (21 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14668348
Default Alt Text
D28016.diff (755 B)
Attached To
Mode
D28016: prepare-commit-msg: Avoid warning on macOS and shellcheck fixes
Attached
Detach File
Event Timeline
Log In to Comment