Thread (17 messages) flat view 17 messages, 9 authors, 2016-06-15

Re: Git: "No you can't handle my root!" (?)

From: Tony Finch <dot@dotat.at>
Date: 2016-06-15 22:47:32

On Mon, 12 Oct 2009, Jeff King wrote:
  $ 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  [off-list ref]  http://dotat.at/
GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS.
MODERATE OR GOOD.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help