remote-testgit: move it into the support directory for t5801
The `git-remote-testgit` script is really only used in `t5801-remote-helpers.sh`. It does not even contain any `@@<MAGIC>@@` placeholders that would need to be interpolated via `make git-remote-testgit`. Let's just move it to a new home, decluttering the top-level directory and clarifying that this is just a test helper, not an official Git command that we would want to ever support. Suggested by Ævar Arnfjörð Bjarmason. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Apr 12, 2019 at 05:00 UTC
5afb2ce4cd19b272c218ef5901265c2519204144
4 files changed
+2
-4
.gitignore
-1
@@ -135,7 +135,6 @@
135
/git-remote-ftps
136
/git-remote-fd
137
/git-remote-ext
138
-/git-remote-testgit
138
/git-remote-testpy
139
/git-remote-testsvn
140
/git-repack
Makefile
-3
@@ -633,7 +633,6 @@ SCRIPT_SH += git-merge-resolve.sh
633
SCRIPT_SH += git-mergetool.sh
634
SCRIPT_SH += git-quiltimport.sh
635
SCRIPT_SH += git-legacy-rebase.sh
636
-SCRIPT_SH += git-remote-testgit.sh
636
SCRIPT_SH += git-request-pull.sh
637
SCRIPT_SH += git-stash.sh
638
SCRIPT_SH += git-submodule.sh
@@ -657,8 +656,6 @@ SCRIPT_PERL += git-svn.perl
656
657
SCRIPT_PYTHON += git-p4.py
658
660
-NO_INSTALL += git-remote-testgit
661
-
659
# Generated files for scripts
660
SCRIPT_SH_GEN = $(patsubst %.sh,%,$(SCRIPT_SH))
661
SCRIPT_PERL_GEN = $(patsubst %.perl,%,$(SCRIPT_PERL))
t/t5801-remote-helpers.sh
+2
@@ -8,6 +8,8 @@ test_description='Test remote-helper import and export commands'
8
. ./test-lib.sh
9
. "$TEST_DIRECTORY"/lib-gpg.sh
10
11
+PATH="$TEST_DIRECTORY/t5801:$PATH"
12
+
13
compare_refs() {
14
git --git-dir="$1/.git" rev-parse --verify $2 >expect &&
15
git --git-dir="$3/.git" rev-parse --verify $4 >actual &&