File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,9 @@ def clone_github_repo(
7373 # For public repositories, no token is needed.
7474
7575 if token :
76- clone_cmd = f"GIT_ASKPASS=echo git clone --quiet --depth 1 --branch { ref } https://oauth2:{ token } @github.com/{ repo } .git /root/code"
76+ clone_cmd = f"GIT_ASKPASS=echo git clone --quiet --depth 1 --branch { ref } --no-single-branch https://oauth2:{ token } @github.com/{ repo } .git /root/code"
7777 else :
78- clone_cmd = f"GIT_TERMINAL_PROMPT=0 git clone --quiet --depth 1 --branch { ref } https://github.com/{ repo } .git /root/code"
78+ clone_cmd = f"GIT_TERMINAL_PROMPT=0 git clone --quiet --depth 1 --branch { ref } --no-single-branch https://github.com/{ repo } .git /root/code"
7979
8080 print (f"🏖️ Cloning { repo } @{ ref } to /root/code" )
8181 return image .run_commands (git_config , clone_cmd , force_build = True )
You can’t perform that action at this time.
0 commit comments