Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
worktree.c: use is_dot_or_dotdot()
[gitweb.git]
/
builtin
/
worktree.c
diff --git
a/builtin/worktree.c
b/builtin/worktree.c
index bf80111fd8934c5cc249618d0811fc0fac31e817..aaee0e2fe8de091c7b7bac9bd95d8fb5da5f82d9 100644
(file)
--- a/
builtin/worktree.c
+++ b/
builtin/worktree.c
@@
-95,7
+95,7
@@
static void prune_worktrees(void)
if (!dir)
return;
while ((d = readdir(dir)) != NULL) {
- if (
!strcmp(d->d_name, ".") || !strcmp(d->d_name, ".."
))
+ if (
is_dot_or_dotdot(d->d_name
))
continue;
strbuf_reset(&reason);
if (!prune_worktree(d->d_name, &reason))