mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
A recent security fix for Git added a fatal error if the directory that contains the .git directory is not owned by the user that runs git in that directory tree: Determine strongSwan version fatal: unsafe repository ('...' is owned by someone else) To avoid this, we call the git commands as owner of the source directory (the script has to run as root, so this is no problem). The user/group ID and name is now also determined via `stat(1)` so it directly depends on the actual source dir and should work even when not using sudo.