Strange unable to unlink error with git-prune-packed
From: Martin Langhoff <hidden>
Date: 2016-06-15 22:42:15
Weilding a recent git version 1.0.6-g58e3 it turns out I cannot run git-prune-packed on a simple repo on my OSX (Panther 10.3.9). The local repo looks fine in my eyes, and permissions are similar to those on Linux. Relaxing permissions doesn't help either, so there may be something else afoot. When I invoke git-prune-packed I am greeted by (3-line sample): error: unable to unlink .git/objects/43/2251e8488dc3c72d94d698ed69003137c47244 error: unable to unlink .git/objects/43/6bc8b274ab96944a6f8c3cf5e3fbeef422042b error: unable to unlink .git/objects/43/fe47e9508289ad4eca71613a9f20d7f3323602 File modes after I ran chmod -R u+w .git/objects to see if prune-packed was taking the mode too seriously on OSX $ ls -la .git/objects/43 total 24 drwxr-xr-x 5 martin martin 170 4 Jan 17:37 . drwxr-xr-x 229 martin martin 7786 4 Jan 17:37 .. -rw-r--r-- 1 martin martin 211 30 Dec 11:21 2251e8488dc3c72d94d698ed69003137c47244 -rw-r--r-- 1 martin martin 53 30 Dec 11:21 6bc8b274ab96944a6f8c3cf5e3fbeef422042b -rw-r--r-- 1 martin martin 152 30 Dec 11:21 fe47e9508289ad4eca71613a9f20d7f3323602 This is low priority for me, and so weird that it has to be a pilot error -- OTOH I may do a bisect to try and figure out whether it's a recent change... cheers, martin