Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx> --- extra/Makefile | 5 ++++- {contrib => extra}/workdir/.gitattributes | 0 {contrib => extra}/workdir/git-new-workdir | 0 t/t1021-rerere-in-workdir.sh | 6 +++--- t/t3000-ls-files-others.sh | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) rename {contrib => extra}/workdir/.gitattributes (100%) rename {contrib => extra}/workdir/git-new-workdir (100%) diff --git a/extra/Makefile b/extra/Makefile index 26d8be55b0..66a1cdcdf4 100644 --- a/extra/Makefile +++ b/extra/Makefile @@ -9,9 +9,12 @@ INSTALL ?= install all: -install: install-completion +install: install-completion install-workdir install-completion: $(INSTALL) -D -m 644 completion/git-completion.bash '$(DESTDIR_SQ)$(bashcompdir_SQ)'/git $(INSTALL) -D -m 644 completion/git-prompt.sh '$(DESTDIR_SQ)$(sharedir_SQ)'/git-core/git-prompt.sh $(INSTALL) -D -m 644 completion/git-completion.zsh '$(DESTDIR_SQ)$(sharedir_SQ)'/zsh/site-functions/_git + +install-workdir: + $(INSTALL) -D workdir/git-new-workdir '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'/git-new-workdir diff --git a/contrib/workdir/.gitattributes b/extra/workdir/.gitattributes similarity index 100% rename from contrib/workdir/.gitattributes rename to extra/workdir/.gitattributes diff --git a/contrib/workdir/git-new-workdir b/extra/workdir/git-new-workdir similarity index 100% rename from contrib/workdir/git-new-workdir rename to extra/workdir/git-new-workdir diff --git a/t/t1021-rerere-in-workdir.sh b/t/t1021-rerere-in-workdir.sh index 0b892894eb..035a92c0e7 100755 --- a/t/t1021-rerere-in-workdir.sh +++ b/t/t1021-rerere-in-workdir.sh @@ -27,7 +27,7 @@ test_expect_success SYMLINKS setup ' test_expect_success SYMLINKS 'rerere in workdir' ' rm -rf .git/rr-cache && - "$SHELL_PATH" "$TEST_DIRECTORY/../contrib/workdir/git-new-workdir" . work && + "$SHELL_PATH" "$TEST_DIRECTORY/../extra/workdir/git-new-workdir" . work && ( cd work && test_must_fail git merge side && @@ -38,12 +38,12 @@ test_expect_success SYMLINKS 'rerere in workdir' ' ' # This fails because we don't resolve relative symlink in mkdir_in_gitdir() -# For the purpose of helping contrib/workdir/git-new-workdir users, we do not +# For the purpose of helping extra/workdir/git-new-workdir users, we do not # have to support relative symlinks, but it might be nicer to make this work # with a relative symbolic link someday. test_expect_failure SYMLINKS 'rerere in workdir (relative)' ' rm -rf .git/rr-cache && - "$SHELL_PATH" "$TEST_DIRECTORY/../contrib/workdir/git-new-workdir" . krow && + "$SHELL_PATH" "$TEST_DIRECTORY/../extra/workdir/git-new-workdir" . krow && ( cd krow && rm -f .git/rr-cache && diff --git a/t/t3000-ls-files-others.sh b/t/t3000-ls-files-others.sh index 740ce56eab..86240a1b98 100755 --- a/t/t3000-ls-files-others.sh +++ b/t/t3000-ls-files-others.sh @@ -84,7 +84,7 @@ test_expect_success SYMLINKS 'ls-files --others with symlinked submodule' ' ) && ( cd super && - "$SHELL_PATH" "$TEST_DIRECTORY/../contrib/workdir/git-new-workdir" ../sub sub && + "$SHELL_PATH" "$TEST_DIRECTORY/../extra/workdir/git-new-workdir" ../sub sub && git ls-files --others --exclude-standard >../actual ) && echo sub/ >expect && -- 2.32.0