Re: [PATCH 3/3] builtins: check for startup_info->help, print and exit early

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jonathan Nieder
Date: Tuesday, October 19, 2010 - 10:55 am

Nguyễn Thái Ngọc Duy wrote:


One has to work hard to trigger this one.

	git init foo
	cd foo
	>.git/refs/heads/master
	git branch -h

Produces:

	fatal: Failed to resolve HEAD as a valid ref.


	git init foo
	cd foo
	>.git/index
	git checkout-index -h

Produces:

	fatal: index file smaller than expected


I'm stopping here.  But maybe some test cases like this would make the
series clearer.

Hope that helps,
Jonathan
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/3] run_builtin(): save "-h" detection result for ..., =?UTF-8?q?Nguy=E1=BB ..., (Tue Oct 19, 6:35 am)
[PATCH 2/3] builtins: utilize startup_info->help where pos ..., =?UTF-8?q?Nguy=E1=BB ..., (Tue Oct 19, 6:35 am)
[PATCH 3/3] builtins: check for startup_info->help, print ..., =?UTF-8?q?Nguy=E1=BB ..., (Tue Oct 19, 6:35 am)
Re: [PATCH 3/3] builtins: check for startup_info->help, pr ..., Jonathan Nieder, (Tue Oct 19, 10:55 am)
Re: [PATCH 2/3] builtins: utilize startup_info->help where ..., Nguyen Thai Ngoc Duy, (Tue Oct 19, 6:13 pm)
Re: [PATCH 3/3] builtins: check for startup_info->help, pr ..., Nguyen Thai Ngoc Duy, (Tue Oct 19, 6:18 pm)