hooks: Append diffs with tee rather than overwrite them
This commit is contained in:
parent
1c11db55ae
commit
731991fc18
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ do
|
|||
tail -n +3 | \
|
||||
sed -e "1s|--- a/$file_escaped_source|--- \"a/$file_escaped_target\"|" \
|
||||
-e "2s|+++ b/-|+++ \"b/$file_escaped_target\"|" | \
|
||||
tee "$diff" | \
|
||||
tee -a "$diff" | \
|
||||
sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" >> "$patch"
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue