This is an automated email from the ASF dual-hosted git repository.

rawlin pushed a commit to branch 4.1.x
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/4.1.x by this push:
     new 5cd813d  Do not require .git to build (#5181) (#5196)
5cd813d is described below

commit 5cd813d96619526d0893226cfe99b9c8419f88ae
Author: Rawlin Peters <[email protected]>
AuthorDate: Mon Oct 26 15:41:44 2020 -0600

    Do not require .git to build (#5181) (#5196)
    
    * Use latest clean_build.sh
    
    * Do not require .git repo to build
    
    (cherry picked from commit dced3833eab080ed8f8a34d5a21594aafe36c062)
---
 infrastructure/docker/build/clean_build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure/docker/build/clean_build.sh 
b/infrastructure/docker/build/clean_build.sh
index 65729d1..9ce4195 100755
--- a/infrastructure/docker/build/clean_build.sh
+++ b/infrastructure/docker/build/clean_build.sh
@@ -36,7 +36,7 @@ tc_dir=${GOPATH}/src/github.com/apache/trafficcontrol;
 mkdir -p ${GOPATH}/{src,pkg,bin} $tc_dir;
 ( set -o errexit;
        rsync -a /trafficcontrol/ $tc_dir;
-       if ! [[ -d ${tc_dir}/.git ]]; then
+       if [ -d /trafficcontrol/.git ] && [ ! -d ${tc_dir}/.git ]; then
                rsync -a /trafficcontrol/.git $tc_dir; # Docker for Windows 
compatibility
        fi;
        rm -rf ${tc_dir}/dist;

Reply via email to