Call chmod after 'git pull'
Similar to clone, the umask is not honored. Fix with recursive chmod.
This commit is contained in:
parent
105b4f6594
commit
6250b5f995
1 changed files with 3 additions and 2 deletions
|
@ -51,8 +51,9 @@ cd "${gitdir}"
|
|||
remote=$("${git}" remote | head -n1)
|
||||
if [ "$(git branch --show-current)" != "${branch}" ]; then
|
||||
change_branch "${remote}" "${branch}"
|
||||
echo "[-] Adjust filemode. This might take a while"
|
||||
doas -u root /bin/chmod -R "${mode}" "${gitdir}"
|
||||
fi
|
||||
set -x
|
||||
doas -u _portzap "${git}" pull --rebase "${remote}" "${branch}"
|
||||
set +x
|
||||
echo "[-] Adjust filemode. This might take a while"
|
||||
doas -u root /bin/chmod -R "${mode}" "${gitdir}"
|
||||
|
|
Loading…
Reference in a new issue