From: Linus Torvalds Date: Thu, 16 Nov 2006 18:28:35 GMT Subject: Re: Cleaning up git user-interface warts Message-ID: In-Reply-To: On Thu, 16 Nov 2006, Linus Torvalds wrote: > @@ -95,6 +100,12 @@ case "$merge_head" in > ;; > esac > > +if test -z "$orig_head" > +then > + git-update-ref -m "initial pull" HEAD $merge_head "" || exit 1 > + exit > +fi > + So this is the place that probably wants a "git-checkout" before the exit, otherwise you'd (illogically) have to do it by hand for that particular case. Of course, we should _not_ do it if the "--bare" flag has been set, so you migth want to tweak the exact logic here.