I am testing out restic, and wondered if it would work without giving a password on init. So I just pressed enter twice when asked for password.
$ restic init --repo . enter password for new repository: enter password again: an empty password is not a password main.ReadPassword /restic/cmd/restic/global.go:360 main.ReadPasswordTwice /restic/cmd/restic/global.go:374 main.runInit /restic/cmd/restic/cmd_init.go:65 main.glob..func12 /restic/cmd/restic/cmd_init.go:25 github.com/spf13/cobra.(*Command).execute /firstname.lastname@example.org/command.go:826 github.com/spf13/cobra.(*Command).ExecuteC /email@example.com/command.go:914 github.com/spf13/cobra.(*Command).Execute /firstname.lastname@example.org/command.go:864 main.main /restic/cmd/restic/main.go:98 runtime.main /usr/local/go/src/runtime/proc.go:204 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1374
This resulted in a bunch of expected directories being created, but no config file.
I now understand that a password is required, but I think that creating a partially incomplete repository even though no password was given is a (minor) bug. Thoughts?