summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/repository.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/repository.c b/src/repository.c
index 0e416e0b8..fbae8935b 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -1552,9 +1552,6 @@ int git_repository_state(git_repository *repo)
assert(repo);
- if (!git_repository_head_detached(repo))
- return state;
-
if (git_buf_puts(&repo_path, repo->path_repository) < 0)
return -1;