Skip to content

Commit 34f559d

Browse files
committed
Update hotpatch.sh
1 parent de443c0 commit 34f559d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎_development_utilities/hotpatch.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ git diff --exit-code --name-only $1 HEAD > tmp_file
1313
sed -i -b '/^diff/d' tmp_file
1414
sed -i -b '/^new/d' tmp_file
1515
sed -i -b '/^index/d' tmp_file
16+
sed -i -b '/deleted file mode 100644/{N;d}' tmp_file #In case of file delete
17+
sed -i -b '/Binary files /d' tmp_file #Binary file changes
1618
#Load the data back into file
1719
file_list=($(cat tmp_file))
1820
#Garbage collect

0 commit comments

Comments
 (0)