Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177456470
D28016.1794451349.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
755 B
Referenced Files
None
Subscribers
None
D28016.1794451349.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
Thu, Nov 12, 2:42 AM (4 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41670258
Default Alt Text
D28016.1794451349.diff (755 B)
Attached To
Mode
D28016: prepare-commit-msg: Avoid warning on macOS and shellcheck fixes
Attached
Detach File
Event Timeline