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.
This commit is contained in:
parent
47b7dc5ccd
commit
9e79aaceba
1 changed files with 2 additions and 1 deletions
|
@ -101,7 +101,8 @@ fn update{
|
|||
}
|
||||
|
||||
fn sigexit{
|
||||
rm -f $msgfile $msgfile.tmp
|
||||
if(~ ! $#msgfile 0)
|
||||
rm -f $msgfile $msgfile.tmp
|
||||
}
|
||||
|
||||
gitup
|
||||
|
|
Loading…
Reference in a new issue