Skip to content

Commit

Permalink
Merge pull request #371 from mindriot101/config-reads-includes
Browse files Browse the repository at this point in the history
Supports git config includes
  • Loading branch information
MichaelMure committed Apr 12, 2020
2 parents 28c3ee3 + e062d9a commit d3fc94a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repository/config_git.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (gc *gitConfig) StoreTimestamp(key string, value time.Time) error {

// ReadAll read all key/value pair matching the key prefix
func (gc *gitConfig) ReadAll(keyPrefix string) (map[string]string, error) {
stdout, err := gc.repo.runGitCommand("config", gc.localityFlag, "--get-regexp", keyPrefix)
stdout, err := gc.repo.runGitCommand("config", gc.localityFlag, "--includes", "--get-regexp", keyPrefix)

// / \
// / ! \
Expand Down Expand Up @@ -74,7 +74,7 @@ func (gc *gitConfig) ReadAll(keyPrefix string) (map[string]string, error) {
}

func (gc *gitConfig) ReadString(key string) (string, error) {
stdout, err := gc.repo.runGitCommand("config", gc.localityFlag, "--get-all", key)
stdout, err := gc.repo.runGitCommand("config", gc.localityFlag, "--includes", "--get-all", key)

// / \
// / ! \
Expand Down

0 comments on commit d3fc94a

Please sign in to comment.