From c9f2e62ed3250e5e7e5a98acc935e9772aed9d07 Mon Sep 17 00:00:00 2001 From: Frank Farzan Date: Mon, 5 Feb 2018 19:21:13 -0800 Subject: [PATCH] Don't set GIT_SYNC_DEST in Dockerfile. I'm guessing this is an artifact of previous refactorings. Currently, GIT_SYNC_ROOT defaults to /git and GIT_SYNC_DEST defaults to leaf dir of repo. --- Dockerfile.in | 1 - cmd/git-sync/main.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile.in b/Dockerfile.in index e023562..ae3dce4 100644 --- a/Dockerfile.in +++ b/Dockerfile.in @@ -17,7 +17,6 @@ FROM ARG_FROM MAINTAINER Tim Hockin ADD bin/ARG_ARCH/ARG_BIN /ARG_BIN -ENV GIT_SYNC_DEST /git RUN apk update --no-cache && apk add \ ca-certificates \ diff --git a/cmd/git-sync/main.go b/cmd/git-sync/main.go index 4817762..c79b58e 100644 --- a/cmd/git-sync/main.go +++ b/cmd/git-sync/main.go @@ -49,7 +49,7 @@ var flDepth = flag.Int("depth", envInt("GIT_SYNC_DEPTH", 0), var flRoot = flag.String("root", envString("GIT_SYNC_ROOT", "/git"), "the root directory for git operations") var flDest = flag.String("dest", envString("GIT_SYNC_DEST", ""), - "the name at which to publish the checked-out files under --root (defaults to leaf dir of --root)") + "the name at which to publish the checked-out files under --root (defaults to leaf dir of --repo)") var flWait = flag.Float64("wait", envFloat("GIT_SYNC_WAIT", 0), "the number of seconds between syncs") var flOneTime = flag.Bool("one-time", envBool("GIT_SYNC_ONE_TIME", false),