* Deleting a Bare Repo
@ 2011-03-18 15:26 Sean B. Palmer
2011-03-18 21:36 ` Neal Kreitzinger
0 siblings, 1 reply; 2+ messages in thread
From: Sean B. Palmer @ 2011-03-18 15:26 UTC (permalink / raw)
To: git
I'd like to delete a bare git repo, but I want to check that (a) it's
being used as the actual git bare repo, e.g. if $GIT_DIR is set, and
(b) that it is actually a git repo. Using rm -rf .git/ doesn't seem
safe for these reasons, so is there a command in git itself to do
this?
I've been going through the man pages without success.
--
Sean B. Palmer, http://inamidst.com/sbp/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Deleting a Bare Repo
2011-03-18 15:26 Deleting a Bare Repo Sean B. Palmer
@ 2011-03-18 21:36 ` Neal Kreitzinger
0 siblings, 0 replies; 2+ messages in thread
From: Neal Kreitzinger @ 2011-03-18 21:36 UTC (permalink / raw)
To: Sean B. Palmer; +Cc: git
On 3/18/2011 10:26 AM, Sean B. Palmer wrote:
> I'd like to delete a bare git repo, but I want to check that (a) it's
> being used as the actual git bare repo, e.g. if $GIT_DIR is set, and
> (b) that it is actually a git repo. Using rm -rf .git/ doesn't seem
> safe for these reasons, so is there a command in git itself to do
> this?
>
> I've been going through the man pages without success.
>
here is a partial list of considerations and inqueries:
* there is not a git command to delete a repo. rm -rf is how you do it.
* git repo's are not aware of who has cloned from them and/or is
pulling/fetching from them.
* if there is a git-daemon-export-ok then that means it was setup to be
pull-from via the git:// protocol. however, that doesn't mean anyone is
actually pulling from it.
* check the config file and see if its setup as a mirror. if so,
investigate its mirror.
if you are talking about manual deletion you could:
* cd to the bare repo and do a git-status. if it returns a status then
it's a working repo (not necessarily a referenced repo).
* analyze it in gitk and see if anyone has pushed to it recently.
* rename it and see if anyone complains.
v/r,
neal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-18 21:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-18 15:26 Deleting a Bare Repo Sean B. Palmer
2011-03-18 21:36 ` Neal Kreitzinger
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).