Skip to contentSkip to conversation

Corrected copy-and-paste thinko in ignore executable bit test case.

PATCH In review Shawn Pearce 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Corrected copy-and-paste thinko in ignore executable bit test case.

This test should be testing update-index --add, not git-add as these are two completely different implementations of what is essentially the same task.

---
 t/t3700-add.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
t/t3700-add.sh +1 -1
index d36f22d..c20e4c2 100755
@@ -35,7 +35,7 @@ test_expect_success \
 	'git repo-config core.filemode 0 &&
 	 echo foo >xfoo2 &&
 	 chmod 755 xfoo2 &&
-	 git-add xfoo2 &&
+	 git-update-index --add xfoo2 &&
 	 case "`git-ls-files --stage xfoo2`" in
 	 100644" "*xfoo2) echo ok;;
 	 *) echo fail; git-ls-files --stage xfoo2; exit 1;;
Signature · 1 line
1.4.2.1.g1e40
#1 lore raw
Quoted 3 lines · Shawn Pearce

This test should be testing update-index --add, not git-add as these are two completely different implementations of what is essentially the same task.

Thanks -- I'd rephrase the last sentence, though.

#2 lore raw
Quoted 7 lines · Junio C Hamano
Quoted 3 lines · Shawn Pearce

This test should be testing update-index --add, not git-add as these are two completely different implementations of what is essentially the same task.

Thanks -- I'd rephrase the last sentence, though.

-- >8 --
Corrected copy-and-paste thinko in ignore executable bit test case.

This test should be testing update-index --add, not git-add to ensure all possible interfaces behave the same way.

---
 t/t3700-add.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
t/t3700-add.sh +1 -1
index d36f22d..c20e4c2 100755
@@ -35,7 +35,7 @@ test_expect_success \
 	'git repo-config core.filemode 0 &&
 	 echo foo >xfoo2 &&
 	 chmod 755 xfoo2 &&
-	 git-add xfoo2 &&
+	 git-update-index --add xfoo2 &&
 	 case "`git-ls-files --stage xfoo2`" in
 	 100644" "*xfoo2) echo ok;;
 	 *) echo fail; git-ls-files --stage xfoo2; exit 1;;
Signature · 1 line
1.4.2.1.g1e40