Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jn/bisect-coding-style'
[gitweb.git]
/
builtin
/
check-attr.c
diff --git
a/builtin/check-attr.c
b/builtin/check-attr.c
index e9af7b2bfb932d75cdface880be9814885068a50..5600ec3f6165ae04682f30481142452438f856af 100644
(file)
--- a/
builtin/check-attr.c
+++ b/
builtin/check-attr.c
@@
-102,6
+102,9
@@
int cmd_check_attr(int argc, const char **argv, const char *prefix)
struct git_attr_check *check;
int cnt, i, doubledash, filei;
+ if (!is_bare_repository())
+ setup_work_tree();
+
git_config(git_default_config, NULL);
argc = parse_options(argc, argv, prefix, check_attr_options,