Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-12-01 17:47:35 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-12-01 18:20:04 +0300
commit755302945822f7caaf694f0b0b203aebc378d9af (patch)
tree55dd8df62fab877a4f9583fa82bda3d89d072f26 /Makefile
parentf275c972fa02faf0caa9b021f3c42e22becba8f5 (diff)
Makefile: Silence git-fsck's dangling object output
After cloning test repos, we replace their references with our own vision of references by removing all loose ones and moving in a pre-packed packed-refs file. As a result, we get a bunch of dangling objects because we effectively move back the repository in time even though we already downloaded all objects. While not bad per-se, it creates quite some output when we run git-fsck(1) to check the repo for consistency. Silence these messages by adding the `--no-dangling` switch.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8768cd1e9..60c98a6d9 100644
--- a/Makefile
+++ b/Makefile
@@ -630,14 +630,14 @@ ${TEST_REPO}:
${Q}rm -rf $@/refs
${Q}mkdir -p $@/refs/heads $@/refs/tags
${Q}cp ${SOURCE_DIR}/_support/gitlab-test.git-packed-refs $@/packed-refs
- ${Q}${GIT} -C $@ fsck --no-progress
+ ${Q}${GIT} -C $@ fsck --no-progress --no-dangling
${TEST_REPO_GIT}:
${GIT} clone --bare ${GIT_QUIET} https://gitlab.com/gitlab-org/gitlab-git-test.git $@
${Q}rm -rf $@/refs
${Q}mkdir -p $@/refs/heads $@/refs/tags
${Q}cp ${SOURCE_DIR}/_support/gitlab-git-test.git-packed-refs $@/packed-refs
- ${Q}${GIT} -C $@ fsck --no-progress
+ ${Q}${GIT} -C $@ fsck --no-progress --no-dangling
${BENCHMARK_REPO}:
${GIT} clone --bare ${GIT_QUIET} https://gitlab.com/gitlab-org/gitlab.git $@