ref: 4aef95e205f912ea7eb4c147742a59d575c8b1ff
parent: c12e49ecbf4ae7933b13d592543c9f7c7dc03581
author: Ori Bernstein <[email protected]>
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
}
}