* git-repack not removing files from $GIT_DIR/objects/[00-ff]
@ 2006-07-17 0:44 Post, Mark K
2006-07-17 1:21 ` Shawn Pearce
2006-07-17 3:26 ` Jeff King
0 siblings, 2 replies; 6+ messages in thread
From: Post, Mark K @ 2006-07-17 0:44 UTC (permalink / raw)
To: git
I'm having a problem that just started occurring with git-repack not
removing the files from $GIT_DIR/objects/*, and therefore not removing
the directories, since they're not empty. The command I'm using (as the
git user) is this:
GIT_DIR=/home/git/pub/scm/linux-2.6.git git-repack -a -d -l
This used to work, but then suddenly stopped working. I ran an strace
-f -F with this same command, and I don't see any attempt being made to
unlink the files in $GIT_DIR/objects/*/, but I do see the rmdir commands
failing because the directories are not empty. All of the files in
those directories are owned by git:git.
I tried upgrading to git 1.4.1, but the same thing happens. The gzipped
strace output is almost 5MB in size, certainly not appropriate to attach
here. I can make it available from the system's web server if anyone
wants to look at it.
Please let me know if there's any other information needed.
Mark Post
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: git-repack not removing files from $GIT_DIR/objects/[00-ff]
2006-07-17 0:44 git-repack not removing files from $GIT_DIR/objects/[00-ff] Post, Mark K
@ 2006-07-17 1:21 ` Shawn Pearce
2006-07-17 1:47 ` Post, Mark K
2006-07-17 3:26 ` Jeff King
1 sibling, 1 reply; 6+ messages in thread
From: Shawn Pearce @ 2006-07-17 1:21 UTC (permalink / raw)
To: Post, Mark K; +Cc: git
"Post, Mark K" <mark.post@eds.com> wrote:
> I'm having a problem that just started occurring with git-repack not
> removing the files from $GIT_DIR/objects/*, and therefore not removing
> the directories, since they're not empty. The command I'm using (as the
> git user) is this:
> GIT_DIR=/home/git/pub/scm/linux-2.6.git git-repack -a -d -l
>
> This used to work, but then suddenly stopped working. I ran an strace
> -f -F with this same command, and I don't see any attempt being made to
> unlink the files in $GIT_DIR/objects/*/, but I do see the rmdir commands
> failing because the directories are not empty. All of the files in
> those directories are owned by git:git.
Try running `git-prune-packed` after git-repack. git-repack doesn't
delete the loose objects.
I don't remember git-repack ever doing it either.
--
Shawn.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: git-repack not removing files from $GIT_DIR/objects/[00-ff]
2006-07-17 1:21 ` Shawn Pearce
@ 2006-07-17 1:47 ` Post, Mark K
2006-07-17 1:51 ` Shawn Pearce
0 siblings, 1 reply; 6+ messages in thread
From: Post, Mark K @ 2006-07-17 1:47 UTC (permalink / raw)
To: spearce; +Cc: git
Thanks for the suggestion, but it didn't help. One reason is that this
is a bare repository. When I ran the command, it aborted with "fatal:
Not a git repository." Most likely because bare repositories don't have
a .git directory in them.
Mark Post
-----Original Message-----
From: spearce@spearce.org [mailto:spearce@spearce.org]
Sent: Sunday, July 16, 2006 9:22 PM
To: Post, Mark K
Cc: git@vger.kernel.org
Subject: Re: git-repack not removing files from $GIT_DIR/objects/[00-ff]
"Post, Mark K" <mark.post@eds.com> wrote:
> I'm having a problem that just started occurring with git-repack not
> removing the files from $GIT_DIR/objects/*, and therefore not removing
> the directories, since they're not empty. The command I'm using (as
the
> git user) is this:
> GIT_DIR=/home/git/pub/scm/linux-2.6.git git-repack -a -d -l
>
> This used to work, but then suddenly stopped working. I ran an strace
> -f -F with this same command, and I don't see any attempt being made
to
> unlink the files in $GIT_DIR/objects/*/, but I do see the rmdir
commands
> failing because the directories are not empty. All of the files in
> those directories are owned by git:git.
Try running `git-prune-packed` after git-repack. git-repack doesn't
delete the loose objects.
I don't remember git-repack ever doing it either.
--
Shawn.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: git-repack not removing files from $GIT_DIR/objects/[00-ff]
2006-07-17 1:47 ` Post, Mark K
@ 2006-07-17 1:51 ` Shawn Pearce
2006-07-17 2:48 ` Post, Mark K
0 siblings, 1 reply; 6+ messages in thread
From: Shawn Pearce @ 2006-07-17 1:51 UTC (permalink / raw)
To: Post, Mark K; +Cc: git
So try:
GIT_DIR=/home/git/pub/scm/linux-2.6.git git-prune-packed
On a bare repository you should always set the GIT_DIR environment
variable to the directory of the repository before running the
command.
"Post, Mark K" <mark.post@eds.com> wrote:
> Thanks for the suggestion, but it didn't help. One reason is that this
> is a bare repository. When I ran the command, it aborted with "fatal:
> Not a git repository." Most likely because bare repositories don't have
> a .git directory in them.
>
>
> Mark Post
>
> -----Original Message-----
> From: spearce@spearce.org [mailto:spearce@spearce.org]
> Sent: Sunday, July 16, 2006 9:22 PM
> To: Post, Mark K
> Cc: git@vger.kernel.org
> Subject: Re: git-repack not removing files from $GIT_DIR/objects/[00-ff]
>
> "Post, Mark K" <mark.post@eds.com> wrote:
> > I'm having a problem that just started occurring with git-repack not
> > removing the files from $GIT_DIR/objects/*, and therefore not removing
> > the directories, since they're not empty. The command I'm using (as
> the
> > git user) is this:
> > GIT_DIR=/home/git/pub/scm/linux-2.6.git git-repack -a -d -l
> >
> > This used to work, but then suddenly stopped working. I ran an strace
> > -f -F with this same command, and I don't see any attempt being made
> to
> > unlink the files in $GIT_DIR/objects/*/, but I do see the rmdir
> commands
> > failing because the directories are not empty. All of the files in
> > those directories are owned by git:git.
>
> Try running `git-prune-packed` after git-repack. git-repack doesn't
> delete the loose objects.
>
> I don't remember git-repack ever doing it either.
--
Shawn.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: git-repack not removing files from $GIT_DIR/objects/[00-ff]
2006-07-17 1:51 ` Shawn Pearce
@ 2006-07-17 2:48 ` Post, Mark K
0 siblings, 0 replies; 6+ messages in thread
From: Post, Mark K @ 2006-07-17 2:48 UTC (permalink / raw)
To: spearce; +Cc: git
That doesn't generate any error messages, but it also doesn't clean up
the files in the object directory.
Mark Post
-----Original Message-----
From: spearce@spearce.org [mailto:spearce@spearce.org]
Sent: Sunday, July 16, 2006 9:52 PM
To: Post, Mark K
Cc: git@vger.kernel.org
Subject: Re: git-repack not removing files from $GIT_DIR/objects/[00-ff]
So try:
GIT_DIR=/home/git/pub/scm/linux-2.6.git git-prune-packed
On a bare repository you should always set the GIT_DIR environment
variable to the directory of the repository before running the
command.
"Post, Mark K" <mark.post@eds.com> wrote:
> Thanks for the suggestion, but it didn't help. One reason is that
this
> is a bare repository. When I ran the command, it aborted with "fatal:
> Not a git repository." Most likely because bare repositories don't
have
> a .git directory in them.
>
>
> Mark Post
>
> -----Original Message-----
> From: spearce@spearce.org [mailto:spearce@spearce.org]
> Sent: Sunday, July 16, 2006 9:22 PM
> To: Post, Mark K
> Cc: git@vger.kernel.org
> Subject: Re: git-repack not removing files from
$GIT_DIR/objects/[00-ff]
>
> "Post, Mark K" <mark.post@eds.com> wrote:
> > I'm having a problem that just started occurring with git-repack not
> > removing the files from $GIT_DIR/objects/*, and therefore not
removing
> > the directories, since they're not empty. The command I'm using (as
> the
> > git user) is this:
> > GIT_DIR=/home/git/pub/scm/linux-2.6.git git-repack -a -d -l
> >
> > This used to work, but then suddenly stopped working. I ran an
strace
> > -f -F with this same command, and I don't see any attempt being made
> to
> > unlink the files in $GIT_DIR/objects/*/, but I do see the rmdir
> commands
> > failing because the directories are not empty. All of the files in
> > those directories are owned by git:git.
>
> Try running `git-prune-packed` after git-repack. git-repack doesn't
> delete the loose objects.
>
> I don't remember git-repack ever doing it either.
--
Shawn.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: git-repack not removing files from $GIT_DIR/objects/[00-ff]
2006-07-17 0:44 git-repack not removing files from $GIT_DIR/objects/[00-ff] Post, Mark K
2006-07-17 1:21 ` Shawn Pearce
@ 2006-07-17 3:26 ` Jeff King
1 sibling, 0 replies; 6+ messages in thread
From: Jeff King @ 2006-07-17 3:26 UTC (permalink / raw)
To: Post, Mark K; +Cc: git
On Sun, Jul 16, 2006 at 08:44:52PM -0400, Post, Mark K wrote:
> I'm having a problem that just started occurring with git-repack not
> removing the files from $GIT_DIR/objects/*, and therefore not removing
> the directories, since they're not empty. The command I'm using (as the
> git user) is this:
> GIT_DIR=/home/git/pub/scm/linux-2.6.git git-repack -a -d -l
git-prune-packed (which, contrary to what Shawn said, is run by
git-repack -d) will only remove objects which are redundant because of
their presence in packs. It will not remove objects which are not
reachable (which is normal if you have, for example, done a rebase in
this repository). Check out git-prune and git-fsck-objects.
-Peff
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-07-17 3:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-17 0:44 git-repack not removing files from $GIT_DIR/objects/[00-ff] Post, Mark K
2006-07-17 1:21 ` Shawn Pearce
2006-07-17 1:47 ` Post, Mark K
2006-07-17 1:51 ` Shawn Pearce
2006-07-17 2:48 ` Post, Mark K
2006-07-17 3:26 ` Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).