diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/refdb_fs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/refdb_fs.c b/src/refdb_fs.c index 140879d23..9432df8c9 100644 --- a/src/refdb_fs.c +++ b/src/refdb_fs.c @@ -1603,6 +1603,8 @@ static int create_new_reflog_file(const char *filepath) GIT_INLINE(int) retrieve_reflog_path(git_buf *path, git_repository *repo, const char *name) { + if (strcmp(name, GIT_HEAD_FILE) == 0) + return git_buf_join3(path, '/', repo->gitdir, GIT_REFLOG_DIR, name); return git_buf_join3(path, '/', repo->commondir, GIT_REFLOG_DIR, name); } |
