Forcing git top-level

2015-03-31 Thread Cedric Gava
Hello I’ve copied a .git folder located at the root (/) of a filesystem, into another directory (/home/mydir). If I issue a git rev-parse —show-toplevel I got /... I would like to change the top-level to point to /home/mydir. I’ve also tried to bare clone the original .git folder, but the new

Re: Forcing git top-level

2015-03-31 Thread Jeff King
On Tue, Mar 31, 2015 at 11:25:58AM +0200, Cedric Gava wrote: I’ve copied a .git folder located at the root (/) of a filesystem, into another directory (/home/mydir). If I issue a git rev-parse —show-toplevel I got /... I would like to change the top-level to point to /home/mydir. Try running