commit e07e6c9a977de0247be0764edb513c7984b20c2a
parent 2a9458b53f48c4622495e87a1dbc3650f49fcc3e
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 25 May 2026 17:21:37 +0200
git-barepo: fix repository sharing via a symlink
The repository's access permissions were not updated correctly when its
path was a symbolic link.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/git-barepo b/git-barepo
@@ -88,7 +88,7 @@ share() # repo, group
die
fi
- chown -R :"$2" "$1"
+ chown -RL :"$2" "$1"
find -L "$1" -type f -exec chmod "g+w" {} \;
find -L "$1" -type d -exec chmod "g+ws" {} \;
cd -- "$1"
@@ -114,7 +114,7 @@ privatise() # repo
fgperm="$(file_grp_priv_perm)"
dgperm="$(dir_grp_priv_perm)"
- chown -R :"${g}" "$1"
+ chown -RL :"${g}" "$1"
find -L "$1" -type f -exec chmod "${fgperm}" {} \;
find -L "$1" -type d -exec chmod "${dgperm}" {} \;
cd -- "$1"