Re: Git: "No you can't handle my root!" (?)
- From
Tony Finch <dot@dotat.at>
- Date
- Oct 13, 2009, 17:46 UTC
- Message-ID
- <alpine.LSU.2.00.0910131842440.11815@hermes-1.csi.cam.ac.uk>
- In-Reply-To
- <20091012183519.GA10686@coredump.intra.peff.net>
On Mon, 12 Oct 2009, Jeff King wrote:
Show 5 quoted lines
> > $ cd / > $ git init > $ cd /etc/whatever > $ git add .
One reason that you don't want to do this (even if it does work) is that careless use of git (e.g. by a user who is not the sysadmin playing with git in their home directory) is going to find the root repository when you expect it not to find any repository.
Also, I suggest this little wrapper script: http://dotat.at/cgi/git?p=git-deploy.git;a=blob;f=git-root.sh
Tony.
-- f.anthony.n.finch <dot@dotat.at> http://dotat.at/ GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS. MODERATE OR GOOD.