|
|
|
@ -438,11 +438,13 @@ static void bootstrap_attr_stack(void)
@@ -438,11 +438,13 @@ static void bootstrap_attr_stack(void)
|
|
|
|
|
elem->prev = attr_stack; |
|
|
|
|
attr_stack = elem; |
|
|
|
|
|
|
|
|
|
if (!is_bare_repository()) { |
|
|
|
|
elem = read_attr(GITATTRIBUTES_FILE, 1); |
|
|
|
|
elem->origin = strdup(""); |
|
|
|
|
elem->prev = attr_stack; |
|
|
|
|
attr_stack = elem; |
|
|
|
|
debug_push(elem); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
elem = read_attr_from_file(git_path(INFOATTRIBUTES_FILE), 1); |
|
|
|
|
if (!elem) |
|
|
|
@ -501,6 +503,7 @@ static void prepare_attr_stack(const char *path, int dirlen)
@@ -501,6 +503,7 @@ static void prepare_attr_stack(const char *path, int dirlen)
|
|
|
|
|
/* |
|
|
|
|
* Read from parent directories and push them down |
|
|
|
|
*/ |
|
|
|
|
if (!is_bare_repository()) { |
|
|
|
|
while (1) { |
|
|
|
|
char *cp; |
|
|
|
|
|
|
|
|
@ -518,6 +521,7 @@ static void prepare_attr_stack(const char *path, int dirlen)
@@ -518,6 +521,7 @@ static void prepare_attr_stack(const char *path, int dirlen)
|
|
|
|
|
attr_stack = elem; |
|
|
|
|
debug_push(elem); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
* Finally push the "info" one at the top of the stack. |
|
|
|
|