Override safe.bareRepository for git remotes
Fix using git remotes that are bare when git is configured with safe.bareRepository = explicit Sponsored-by: Dartmouth College's DANDI project
This commit is contained in:
parent
cbfd214993
commit
baf8e4f6ed
7 changed files with 37 additions and 19 deletions
|
@ -53,8 +53,11 @@ 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
|
||||
-- Use when the path to the repository was specified explicitly,
|
||||
-- eg in a git remote, and so it's safe to set
|
||||
-- -c safe.directory=* and -c safe.bareRepository=all
|
||||
-- when using this repository.
|
||||
, repoPathSpecifiedExplicitly :: Bool
|
||||
} deriving (Show, Eq, Ord)
|
||||
|
||||
newtype ConfigKey = ConfigKey S.ByteString
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue