From: Nguyen Thai Ngoc Duy Date: Thu, 10 Mar 2011 15:59:16 GMT Subject: Re: [PATCH] clean cached refs when calling set_git_dir() Message-ID: In-Reply-To: <1299770345-32055-1-git-send-email-plenz@cis.fu-berlin.de> On Thu, Mar 10, 2011 at 10:19 PM, Julius Plenz wrote: > If you use libgit.a to perform reference resolutions on two or more > repositories that contain packed refs, cached_refs will store the packed > refs for the first repository to contain a packed-refs file only. If you use libgit.a to do anything on more than one repository, you get a lot more messed up that just that. Spawning a new process or accessing with libgit2 may be safer. Why do you want to do that in the first place? -- Duy