shithub: git9

Download patch

ref: 76e4b8fff1607a0b0c7f8ddb844bbce0aa78b7d4
parent: 3f2cb884bedaf1a335bae00b42605e63b956e197
author: kvik <kvik@a-b.xyz>
date: Sat Nov 28 22:04:19 EST 2020

git/import: fix diff parsing

--- a/import
+++ b/import
@@ -45,7 +45,7 @@
 		state="body"
 		next
 	}
-	(state=="headers" || state=="body") && (/^diff/ || /^---[ 	]*$/){
+	(state=="headers" || state=="body") && (/^diff/ || /^---[ 	].*$/){
 		state="diff"
 		print > ENVIRON["diffpath"]
 	}