Fix commit-msg hook failure with spaces in path
If the project absolute path had any whitespace, the commit hook failed to complete because a script variable was not enclosed in double quotes. Change-Id: I86172d17f3ad7290a169d8c9c250ad91cc6025b7 Signed-off-by: Olivier Gay <ogay@logitech.com> Signed-off-by: Marc Viredaz <mviredaz@logitech.com> Signed-off-by: Nestor Lopez <nlopezcasad@logitech.com>
This commit is contained in:
@@ -153,7 +153,7 @@ add_ChangeId() {
|
||||
if (unprinted) {
|
||||
print "Change-Id: I'"$id"'"
|
||||
}
|
||||
}' "$MSG" > $T && mv $T "$MSG" || rm -f $T
|
||||
}' "$MSG" > "$T" && mv "$T" "$MSG" || rm -f "$T"
|
||||
}
|
||||
_gen_ChangeIdInput() {
|
||||
echo "tree `git write-tree`"
|
||||
|
Reference in New Issue
Block a user