setup: split off code to handle stumbling upon a repository
commit68698da540acb0c891b810396d704fef3643c576
authorJonathan Nieder <jrnieder@gmail.com>
Sat, 24 Jul 2010 11:25:32 +0000 (24 06:25 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Jul 2010 05:12:47 +0000 (25 22:12 -0700)
tree0b8c6a31ef8c1c57b0358f81aae76d3ef6adb258
parent93a00542eaeb40c31b4de2497f5413a2fc0f36f4
setup: split off code to handle stumbling upon a repository

If a repository is found as an ancestor of the original
working directory, it is assumed by default to be bare.
Handle this case with its own function.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c