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 | 54f6a8dbd65cbe6ad31a8b6b531de81009514eb3 (diff) | |
parent | 90a6464b4ad5887e4d12e660f51dabdbd5c00812 (diff) | |
download | git-ad7bb2f68c0b7786521173e05ef58d0f3e0db3d7.tar.gz |
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; } |