From 4aef95e205f912ea7eb4c147742a59d575c8b1ff Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Sun, 13 Jun 2021 01:20:46 +0000 Subject: 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. --- sys/src/cmd/git/branch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/git/branch b/sys/src/cmd/git/branch index addfec4b6..d3aa77d2b 100755 --- a/sys/src/cmd/git/branch +++ b/sys/src/cmd/git/branch @@ -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 } } -- cgit v1.2.3