diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-03-26 20:13:16 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-26 20:13:16 -0700 |
commit | ad7bb2f68c0b7786521173e05ef58d0f3e0db3d7 (patch) | |
tree | 9fc6b2df2743b837f774c0ce925cdad2427c4535 /rerere.c | |
parent | Merge branch 'nd/index-doc' (diff) | |
parent | rerere: make sure it works even in a workdir attached to a young repository (diff) | |
download | tgif-ad7bb2f68c0b7786521173e05ef58d0f3e0db3d7.tar.xz |
Merge branch 'jc/maint-rerere-in-workdir'
* jc/maint-rerere-in-workdir:
rerere: make sure it works even in a workdir attached to a young repository
Diffstat (limited to 'rerere.c')
-rw-r--r-- | rerere.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -590,8 +590,7 @@ static int is_rerere_enabled(void) if (rerere_enabled < 0) return rr_cache_exists; - if (!rr_cache_exists && - (mkdir(rr_cache, 0777) || adjust_shared_perm(rr_cache))) + if (!rr_cache_exists && mkdir_in_gitdir(rr_cache)) die("Could not create directory %s", rr_cache); return 1; } |