Needing to git prune

4,638 views
Skip to first unread message

Chris Mumford

unread,
Mar 1, 2016, 5:00:58 PM3/1/16
to Chromium-dev
I just sync'ed up and started rebasing my local branches and got this error:

Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
error: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log.
Automatic cleanup will not be performed until the file is removed.

warning: There are too many unreachable loose objects; run 'git prune' to remove them.

origin/master has no parent to rebase to

But I got this same error just a few days ago and did a prune then - which got me past this error. Seems like I'm close to some limit. Anybody else encountering this?

Primiano Tucci

unread,
Mar 3, 2016, 1:16:01 PM3/3/16
to cmum...@chromium.org, Chromium-dev
Never seen this before.
Is there anything interesting in .git/gc.log?
Maybe try running a
git -c pack.threads=6 repack -ad
overnight.

Also, It seem you ended up creating a branch named "origin/master", but I doubt that is related with this problem.
You can remove it by running git update-ref -d refs/heads/origin/master

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Chris Mumford

unread,
Mar 3, 2016, 1:50:51 PM3/3/16
to Chromium-dev, cmum...@chromium.org
Are you sure about origin/master?

$ git branch -a | grep master
  master
  remotes/android/master
  remotes/desktop/master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master

I'll stop pruning as a prophylactic measure and post the contents of .git/gc.log next time this happens.

Eric Roman

unread,
Mar 3, 2016, 3:02:04 PM3/3/16
to Chris Mumford, Chromium-dev
I got that error after syncing yesterday too.

I ran the recommended prune command and haven't gotten a warning since.
Reply all
Reply to author
Forward
0 new messages