Re: contrib/git-normal-to-bare.sh

2013-05-28 Thread Junio C Hamano
Zenaan Harkness z...@freedbms.net writes: I needed this quite a bit in the last few days, basic script but serves my need. I think it would be useful for other beginners if in $git/contrib/ source dir. Just a start to a basic script. Needs more tests etc, but it's enough to get newbies

RE: contrib/git-normal-to-bare.sh

2013-05-28 Thread Felipe Contreras
Zenaan Harkness wrote: This question comes up every now and then - how to convert from normal to bare, or vice versa. This is just a start to a basic script to go one way. Needs more tests etc, but it's enough to get newbies (like me) off to a reasonable start. PLEASE CC me, as I am not

Re: contrib/git-normal-to-bare.sh

2013-05-27 Thread Matthieu Moy
Zenaan Harkness z...@freedbms.net writes: rm -rf $repo The user would appreciate if you check that there are no uncommited changes and no untracked files (at least no untracked and not ignored files) before running this. Also, it's $repo, not just $repo, or you'll get surprising behavior if

Re: contrib/git-normal-to-bare.sh

2013-05-27 Thread Zenaan Harkness
On 5/27/13, Matthieu Moy matthieu@grenoble-inp.fr wrote: Zenaan Harkness z...@freedbms.net writes: rm -rf $repo The user would appreciate if you check that there are no uncommited changes and no untracked files (at least no untracked and not ignored files) before running this.

Re: contrib/git-normal-to-bare.sh

2013-05-27 Thread Fredrik Gustafsson
On Mon, May 27, 2013 at 07:43:13PM +1000, Zenaan Harkness wrote: In my later email, I changed it to mv - should have highlighted there was a change. I got bitten, on a small repo thankfully, where a perms or ownership problem caused the whole repo to disappear. So mv it is :) Do you really