diff options
Diffstat (limited to 'worktree.c')
-rw-r--r-- | worktree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worktree.c b/worktree.c index 092a4f92ad..ac099fa018 100644 --- a/worktree.c +++ b/worktree.c @@ -486,7 +486,7 @@ int submodule_uses_worktrees(const char *path) return 0; d = readdir_skip_dot_and_dotdot(dir); - if (d != NULL) + if (d) ret = 1; closedir(dir); return ret; |