diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-03-05 14:34:32 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-03-05 14:34:32 +0200 |
| commit | 55ffebe37768b2b839f5501f76e77e89d9f91882 (patch) | |
| tree | c9275716290855fd909df22c4163bf7797da02b8 /src/refs.c | |
| parent | 246eba80af31d25a1fb14e707f79374cf91f8bb7 (diff) | |
| download | libgit2-55ffebe37768b2b839f5501f76e77e89d9f91882.tar.gz | |
Fix creation of deeply-rooted references
Use a new `gitfo_creat_force` that will create the full path to a file
before creating it.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/refs.c')
| -rw-r--r-- | src/refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/refs.c b/src/refs.c index 10df8e0c4..2fc383e22 100644 --- a/src/refs.c +++ b/src/refs.c @@ -291,7 +291,7 @@ static int loose_write(git_reference *ref) git__joinpath(ref_path, ref->owner->path_repository, ref->name); - if ((error = git_filebuf_open(&file, ref_path, 0)) < GIT_SUCCESS) + if ((error = git_filebuf_open(&file, ref_path, GIT_FILEBUF_FORCE)) < GIT_SUCCESS) return error; if (ref->type & GIT_REF_OID) { |
