diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/refs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/refs.c b/src/refs.c index cdf3cb96e..74c40e850 100644 --- a/src/refs.c +++ b/src/refs.c @@ -494,6 +494,10 @@ static int _dirent_loose_listall(void *_data, git_buf *full_path) return 0; /* we are filtering out this reference */ } + /* Locked references aren't returned */ + if (!git__suffixcmp(file_path, GIT_FILELOCK_EXTENSION)) + return 0; + if (data->callback(file_path, data->callback_payload)) data->callback_error = GIT_EUSER; |