diff options
author | John Cai <jcai@gitlab.com> | 2023-07-11 04:07:13 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2023-07-11 04:07:13 +0300 |
commit | 99fbd188399e2a5dcfd453e45b87dd11910a1c55 (patch) | |
tree | 6b8973ef72524f4dab59bb667cc772d466eaf44c | |
parent | 92e441aabf41c0793da9cb0ea1be58175f990f80 (diff) |
create repositories with sha256jc/test-sha256
-rw-r--r-- | internal/gitaly/repoutil/create.go | 1 |
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)) |