login
Header Space

 
 

1.5.0.rc0.gf4bf2: "git --bare gc" in bare repo deletes all!

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Tuesday, January 2, 2007 - 11:17 am

I did:

  mkdir M
  cd M
  git --bare init-db
  git --bare fetch git+ssh://localhost/SomeRepo

This got the (correct) 21 (loose) objects. OK, cleanup:

  git --bare gc

this gives:

  Generating pack...
  Done counting 0 objects.
  Nothing new to pack.

and the objects are gone, no pack there.

Same thing happens with plain "git gc". Not very nice...


Besides, you can "git --bare pull ...", and get a mishmash of repo +
checked out files, this should be forbidden. Also, "git status" reports a
bunch of repo files as untracked, "git ls-files" shows nothing at all.
I.e., handling of bare repos needs a workover.
-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                    Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria             +56 32 2654239
Casilla 110-V, Valparaiso, Chile               Fax:  +56 32 2797513

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
1.5.0.rc0.gf4bf2: "git --bare gc" in bare repo deletes all!, Horst H. von Brand, (Tue Jan 2, 11:17 am)
speck-geostationary