set safe.directory when getting config for git-annex-shell or git remotes
Fix more breakage caused by git's fix for CVE-2022-24765, this time involving a remote (either local or ssh) that is a repository not owned by the current user. Sponsored-by: Dartmouth College's DANDI project
This commit is contained in:
parent
32cb2bd3fa
commit
cbfd214993
10 changed files with 75 additions and 4 deletions
|
@ -53,6 +53,8 @@ data Repo = Repo
|
|||
, gitGlobalOpts :: [CommandParam]
|
||||
-- True only when --git-dir or GIT_DIR was used
|
||||
, gitDirSpecifiedExplicitly :: Bool
|
||||
-- Set -c safe.directory when using this repository.
|
||||
, safeDirectory :: Bool
|
||||
} deriving (Show, Eq, Ord)
|
||||
|
||||
newtype ConfigKey = ConfigKey S.ByteString
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue