diff options
author | Daniel Theophanes | 2022-12-28 09:38:09 -0600 |
---|---|---|
committer | Jakob Unterwurzacher | 2022-12-29 14:42:13 +0100 |
commit | 439dea1b198a9edd384e3b9763a9c5672ce62b67 (patch) | |
tree | 82b0723851239b8b67e9cc507bccf00008a35b42 /init_dir.go | |
parent | ff32e9979130e6237b0d97ef88304fa79ce61b06 (diff) |
Use existing build information for version if not embedded with build script
Go1.12 introduced BuildInfo which embeds build information. It does
not embed build date to facilitate reproducable builds by default.
If build information is embedded from build script, use the information
provided by the Go build system.
Diffstat (limited to 'init_dir.go')
-rw-r--r-- | init_dir.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/init_dir.go b/init_dir.go index 5ade692..e895f00 100644 --- a/init_dir.go +++ b/init_dir.go @@ -55,6 +55,8 @@ func isDir(dir string) error { // In reverse mode, we create .gocryptfs.reverse.conf and the directory does // not need to be empty. func initDir(args *argContainer) { + initGIT() + var err error if args.reverse { _, err = os.Stat(args.config) |