git: 9front

Download patch

ref: 80b838b795b258935675ff00268b4c7edf3b0a20
parent: 346215170bbc91f0f7970f4e5d73bf1903e5d01c
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jan 9 12:37:29 EST 2022

git/commit: squelch error when run outside repository

when running outside of a repository, we would try to
remove '$msgfile.tmp', but we had never actually set
'$msgfile'.

the error is harmless, but annoying.

--- a/sys/src/cmd/git/commit
+++ b/sys/src/cmd/git/commit
@@ -101,7 +101,8 @@
 }
 
 fn sigexit{
-	rm -f $msgfile $msgfile.tmp
+	if(~ ! $#msgfile 0)
+		rm -f $msgfile $msgfile.tmp
 }
 
 gitup
--