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.
This commit is contained in:
Ori Bernstein 2021-06-13 01:20:46 +00:00
parent c12e49ecbf
commit 4aef95e205

View file

@ -99,7 +99,7 @@ for(m in $cleanpaths){
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
}
}