Re: Cleaning up git user-interface warts
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Nov 16, 2006, 18:28 UTC
- Message-ID
- <Pine.LNX.4.64.0611161027020.3349@woody.osdl.org>
- In-Reply-To
- <Pine.LNX.4.64.0611160932340.3349@woody.osdl.org>
On Thu, 16 Nov 2006, Linus Torvalds wrote:
Show 10 quoted lines
> @@ -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.