ericmckean / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

Broken symlink to rr-chache in checked out project/.git #62

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Affected Version: repo v1.6.9.1, git version 1.6.3.3
Environment: Ubuntu 9.10 (Karmic Koala)

What steps will reproduce the problem?
1. Create a new git repository with a single file checked in
2. Create a new project for that file
3. Activate git rerere feature
4. Perform normal git commands

What is the expected output? What do you see instead?
commands seem to perform normaly but output messages such as:

$ git commit -m "seq b"
fatal: Could not create directory .git/rr-cache

and

$ git gc
Counting objects: 11, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (11/11), done.
Total 11 (delta 0), reused 8 (delta 0)
fatal: Could not create directory .git/rr-cache
error: failed to run rerere

Please provide any additional information below.

It looks like there git rerere code can't generate the rr-cache directory
in the original ../../.repo/projects/$PROJECT.git/rr-cache location, so
perhaps repo should just create the empty directory for it when it sets up
the symlink if no directory is currently present. If I manualy run "mkdir
../../.repo/projects/$PROJECT.git/rr-cache" then I don't see the errors
anymore.

Original issue reported on code.google.com by OdinG...@gmail.com on 6 Apr 2010 at 2:14

GoogleCodeExporter commented 9 years ago
There's a fix for this here:  https://review.source.android.com/20372

It's working well for me, but using a custom version of repo is a bit of a pain 
for me and very difficult for other members of my group who also wish to do so.

Original comment by dsalli...@gmail.com on 25 Feb 2011 at 7:30