ref: ba7fc391090c3c67e3c986dc8a6718122f65fa43
parent: 45426d65b7b9f83a0adaf30acbec47611438f93c
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Feb 7 18:30:47 EST 2020
suppress error output from grep broken gitfs repositoris are loud.
--- a/common.rc
+++ b/common.rc
@@ -19,7 +19,12 @@
if(~ $#gitrel 0)
gitrel='.'
cd $gitroot
- if(! test -e /mnt/git/ctl || ! grep -s '^repo '$gitroot'$' /mnt/git/ctl)
+ startfs=()
+ if(! test -e /mnt/git/ctl)
+ startfs=true
+ if(! grep -s '^repo '$gitroot'$' /mnt/git/ctl >[2]/dev/null)
+ startfs=true
+ if(~ $#startfs 1)
git/fs
if not
status=''