shithub: riscv

Download patch

ref: 9e79aaceba1b6350908e23145427ff2ce72f064c
parent: 47b7dc5ccd77bc247ab15cfab3a7a8f955771c70
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