Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/candidate-9.0.x' into candidate-…
Browse files Browse the repository at this point in the history
…9.2.x

Signed-off-by: Jake Smith <[email protected]>

# Conflicts:
#	helm/hpcc/Chart.yaml
#	helm/hpcc/templates/_helpers.tpl
#	helm/hpcc/templates/dafilesrv.yaml
#	helm/hpcc/templates/dali.yaml
#	helm/hpcc/templates/dfuserver.yaml
#	helm/hpcc/templates/eclagent.yaml
#	helm/hpcc/templates/eclccserver.yaml
#	helm/hpcc/templates/eclscheduler.yaml
#	helm/hpcc/templates/esp.yaml
#	helm/hpcc/templates/localroxie.yaml
#	helm/hpcc/templates/roxie.yaml
#	helm/hpcc/templates/sasha.yaml
#	helm/hpcc/templates/thor.yaml
#	version.cmake
  • Loading branch information
jakesmith committed Feb 29, 2024
2 parents e217bbe + c5a1ec0 commit 20b30eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/remote/hooks/git/gitfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,14 @@ class GitRepositoryFileIO : implements CSimpleInterfaceOf<IFileIO>

//If fetching from git and the username is specified then use the script file to provide the username/password
//Only support retrieving the password as a secret - not as a filename
//NB: This code should be kept in sync with runGitCommand() in hqlrepository.cpp (and ideally combined)
if (!isEmptyString(gitUser))
{
env.emplace_back("HPCC_GIT_USERNAME", gitUser);

// If gituser is specified never prompt for credentials, otherwise the server can hang.
env.emplace_back("GIT_TERMINAL_PROMPT", "0");

StringBuffer scriptPath;
getPackageFolder(scriptPath);
addPathSepChar(scriptPath).append("bin/hpccaskpass.sh");
Expand Down
1 change: 1 addition & 0 deletions ecl/hql/hqlrepository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,7 @@ unsigned EclRepositoryManager::runGitCommand(StringBuffer * output, const char *
Owned<IFile> extractedKey;
EnvironmentVector env;
//If fetching from git and the username is specified then use the script file to provide the username/password
//NB: This code should be kept in sync with readLfsContents() in gitfile.cpp (and ideally combined)
if (needCredentials)
{
//If the username is supplied, then get the secret and write it to a temporary location.
Expand Down

0 comments on commit 20b30eb

Please sign in to comment.