Re: [bug] Working files created in bare repository when pushing to a rewound bare repository
- From
Jeff King <peff@peff.net>
- Date
- Dec 31, 2007, 07:07 UTC
- Message-ID
- <20071231070749.GB4250@coredump.intra.peff.net>
- In-Reply-To
- <46dff0320712302302p4c125ee1n2abc1561ba10c47e@mail.gmail.com>
On Mon, Dec 31, 2007 at 03:02:25PM +0800, Ping Yin wrote:
Show 5 quoted lines
> Sorry for my inattention. However, i remembered the reason i added > '--hard' is to avoid the warn 'foo.txt: needs update' when 'git > reset HEAD^'. Now i know '--soft' will do the right thing. > > So how about use '--soft' as default in the bare repository?
I started on this when I realized that --soft doesn't even work. I remember posting a patch to make --soft work in a bare repo when git-reset was still a script. However, Junio indicated that using "git branch -f" is the recommended workflow. Perhaps git-reset should be disabled in bare repos totally?
-Peff