ref: aa4d34b09ceeb3436bf4a7b7f2548ab1fe1ea657
parent: fbb2fb7c87d8edf58e22c84f575853dc9de79ac4
author: Ori Bernstein <[email protected]>
date: Mon Jan 25 19:21:16 EST 2021
git/export: sleazy hack to work in shithub environment When running under shithub, we want git/export to generate a patch. However, 'rfork m' prevents us from using mntgen. To work around this, shithub will preinit the ns, but we need to not choke on it. This makes us ignore mntgen errors.
--- a/export
+++ b/export
@@ -22,7 +22,12 @@
commits=`{git/query $q || die $status}
n=1
m=$#commits
-mntgen /mnt/scratch
+
+
+# sleazy hack: we want to run
+# under rfork m for the web ui,
+# so don't error if we can't mount
+mntgen /mnt/scratch >[2]/dev/null || status=''
for(c in $commits){
cp=`{git/query -p $c}
pp=`{git/query -p $c'^'}