Skip to content

Commit 3041bc7

Browse files
Use core attributesFile from worktree (#137)
When using attribute file overrides (for example if override in .dotfiles or by other includes), get the core.attributesFile from the current worktree if available.
1 parent a258dc4 commit 3041bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transcrypt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ gather_repo_metadata() {
8282

8383
# the current git repository's gitattributes file
8484
local CORE_ATTRIBUTES
85-
CORE_ATTRIBUTES=$(git config --get --local --path core.attributesFile 2>/dev/null || printf '')
85+
CORE_ATTRIBUTES=$(git config --get --local --path core.attributesFile 2>/dev/null || git config --get --path core.attributesFile 2>/dev/null || printf '')
8686
if [[ $CORE_ATTRIBUTES ]]; then
8787
readonly GIT_ATTRIBUTES=$CORE_ATTRIBUTES
8888
elif [[ $IS_BARE == 'true' ]] || [[ $IS_VCSH == 'true' ]]; then

0 commit comments

Comments
 (0)