ref: ad533617e0f5838d09704140bb0e6d159bf56511
parent: 87c0fa596894a5bbca89d38c1ccfadbfd7ae8f0a
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Mar 9 17:31:47 EDT 2020
clean up files on import we left around /tmp/gitimport.$pid.patch. delete them at exit.
--- a/import
+++ b/import
@@ -6,6 +6,11 @@
git/import [file ...]
'
+diffpath=/tmp/gitimport.$pid.diff
+fn sigexit {
+ rm -f $diffpath
+}
+
fn apply @{
git/fs
email=''
@@ -12,7 +17,6 @@
name=''
msg=''
parents='-p'^`{git/query HEAD}
- diffpath=/tmp/gitimport.$pid.diff
branch=`{awk '$1=="branch"{print $2}' < /mnt/git/ctl}
if(test -e /mnt/git/branch/$branch/tree)
refpath=.git/refs/$branch