Skip to contentSkip to conversation

Remove repo version check from setup_git_directory

PATCH In review Nguyễn Thái Ngọc Duy 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove repo version check from setup_git_directory

setup_git_directory_gently has done the check already.

---
Sorry, somehow I left this line behind. It should have been gone from my re-fix patch.

 setup.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
setup.c +0 -1
index e96a316..b59dbe7 100644
@@ -388,7 +388,6 @@ int check_repository_format(void)
 const char *setup_git_directory(void)
 {
 	const char *retval = setup_git_directory_gently(NULL);
-	check_repository_format();
 
 	/* If the work tree is not the default one, recompute prefix */
 	if (inside_work_tree < 0) {
Signature · 1 line
1.5.3.7.2155.g4c25
#1 lore raw
Quoted 15 lines · Nguyễn Thái Ngọc Duy

setup_git_directory_gently has done the check already.

---
Sorry, somehow I left this line behind. It should have been gone from my re-fix patch.

 setup.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
setup.c +0 -0
index e96a316..b59dbe7 100644

setup.c int check_repository_format(void) · line 391

Quoted 4 lines
setup.c +0 -1
@@ -388,7 +388,6 @@ int check_repository_format(void)
 const char *setup_git_directory(void)
 {
 	const char *retval = setup_git_directory_gently(NULL);
-	check_repository_format();

Ah, because the previous line already calls the same repository format check, this is now unneeded, indeed.

Thanks.