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:
authorJohn Cai <jcai@gitlab.com>2023-07-11 04:07:13 +0300
committerJohn Cai <jcai@gitlab.com>2023-07-11 04:07:13 +0300
commit99fbd188399e2a5dcfd453e45b87dd11910a1c55 (patch)
tree6b8973ef72524f4dab59bb667cc772d466eaf44c
parent92e441aabf41c0793da9cb0ea1be58175f990f80 (diff)
create repositories with sha256jc/test-sha256
-rw-r--r--internal/gitaly/repoutil/create.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/gitaly/repoutil/create.go b/internal/gitaly/repoutil/create.go
index 650996a75..14aa756d6 100644
--- a/internal/gitaly/repoutil/create.go
+++ b/internal/gitaly/repoutil/create.go
@@ -108,6 +108,7 @@ func Create(
Flags: append([]git.Option{
git.Flag{Name: "--bare"},
git.Flag{Name: "--quiet"},
+ git.Flag{Name: fmt.Sprintf("--object-format=sha256")},
}, cfg.gitOptions...),
Args: []string{newRepoDir.Path()},
}, git.WithStderr(stderr))