aboutsummaryrefslogtreecommitdiffstats
path: root/refs/files-backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'refs/files-backend.c')
-rw-r--r--refs/files-backend.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c
index c7aff6b331..6f98168a81 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -2129,17 +2129,9 @@ static int files_reflog_iterator_advance(struct ref_iterator *ref_iterator)
while ((ok = dir_iterator_advance(diter)) == ITER_OK) {
if (!S_ISREG(diter->st.st_mode))
continue;
- if (diter->basename[0] == '.')
+ if (check_refname_format(diter->basename,
+ REFNAME_ALLOW_ONELEVEL))
continue;
- if (ends_with(diter->basename, ".lock"))
- continue;
-
- if (!refs_resolve_ref_unsafe(iter->ref_store,
- diter->relative_path, 0,
- NULL, NULL)) {
- error("bad ref for %s", diter->path.buf);
- continue;
- }
iter->base.refname = diter->relative_path;
return ITER_OK;
class='deletions'>-1/+1 2006-06-28diff.c: fix get_patch_id()Junio C Hamano1-1/+1 2006-06-28t4014: fix test commit labels.Junio C Hamano1-3/+3 2006-06-28checkout -m: fix read-tree invocationv1.4.1-rc2Junio C Hamano2-2/+73 2006-06-28t/README: start testing porcelainishJunio C Hamano1-0/+1 2006-06-28Save errno in handle_alias()Johannes Schindelin1-1/+3 2006-06-28rebase: check for errors from git-commitEric Wong1-1/+6 2006-06-28cvsimport - cleanup of the multi-indexes handlingMartin Langhoff1-38/+24 2006-06-28connect.c: check the commit buffer boundary while parsing.Junio C Hamano1-4/+8 2006-06-28connect.c: remove unused parameters from tcp_connect and proxy_connectJunio C Hamano1-6/+4 2006-06-28Make some strings constTimo Hirvonen11-15/+16 2006-06-28rebase: get rid of outdated MRESOLVEMSGEric Wong1-8/+3 2006-06-28git wrapper: fix command name in an error message.Andreas Ericsson1-2/+1 2006-06-28git-svn: be verbose by default on fetch/commit, add -q/--quiet optionEric Wong1-11/+23 2006-06-28git-svn: add --follow-parent and --no-metadata options to fetchEric Wong2-46/+167 2006-06-28git-svn: add the commit-diff commandEric Wong2-19/+112 2006-06-28git-svn: several graft-branches improvementsEric Wong2-13/+230 2006-06-28git-svn: SVN 1.1.x library compatibilityEric Wong4-12/+44 2006-06-28combine-diff.c: type sanityJunio C Hamano1-14/+15 2006-06-28quote.c: silence compiler warnings from EMIT macroJeff King1-1/+1 2006-06-27format-patch: use clear_commit_marks() instead of some ad-hockeryJohannes Schindelin1-10/+4 2006-06-27Fix expr usage for FreeBSDDennis Stosberg7-16/+16 2006-06-27t4014: fix for whitespace from "wc -l"Johannes Schindelin1-4/+4