summaryrefslogtreecommitdiff
path: root/internal/sync/backup_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/sync/backup_test.go')
-rw-r--r--internal/sync/backup_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/sync/backup_test.go b/internal/sync/backup_test.go
index 7c2c225..22aa560 100644
--- a/internal/sync/backup_test.go
+++ b/internal/sync/backup_test.go
@@ -116,6 +116,16 @@ func TestParseSSHLocation_SupportsSSHURLWithPort(t *testing.T) {
}
}
+func TestBareRepoInitCommand_UsesSharedGroupMode(t *testing.T) {
+ t.Parallel()
+
+ got := bareRepoInitCommand("/data/nfs/k3svolumes/git-server/repos/example.git")
+ want := `mkdir -p "/data/nfs/k3svolumes/git-server/repos/example.git" && cd "/data/nfs/k3svolumes/git-server/repos/example.git" && git init --bare --shared=group`
+ if got != want {
+ t.Fatalf("bareRepoInitCommand() = %q, want %q", got, want)
+ }
+}
+
func TestRepositoryCreationLocation_UsesDescriptionSyncShellAccess(t *testing.T) {
t.Parallel()