ref: 05e7212e022a0563a7480e613f612bf994d3c417
parent: 9100648fb1a1de7a720cb3479fb6afe506e428f1
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Jun 12 21:20:46 EDT 2021
git/branch: preserve checked in permissions on branch update we need to copy the files, and we should copy them with the permissions that exist in the repo.
--- a/sys/src/cmd/git/branch
+++ b/sys/src/cmd/git/branch
@@ -99,7 +99,7 @@
rm -rf .git/index9/tracked/$m
}
if(~ $b file){
- cp $basedir/tree/$m $m
+ cp -x $basedir/tree/$m $m
walk -eq $m > .git/index9/tracked/$m
}
}
--
⑨