Code

setup: clean up setup_discovered_git_dir()
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 26 Nov 2010 15:32:38 +0000 (22:32 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Dec 2010 22:34:24 +0000 (14:34 -0800)
commit9951d3b37ec7298384640b11d07a990ef031fe83
treefe661f2e8f260e6484a417b9682d2fe3fb6976da
parent101662c22518de4abfbd5b2fc38b3ec1fa638494
setup: clean up setup_discovered_git_dir()

If core.bare is true, discard the discovered worktree, move back to
original cwd.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c
t/t1510-repo-setup.sh