HPCC-9984 Compile direct from a version control system

Add code to eclccserver to support installation of hooks in place of eclcc,
and to pass values to those hooks via the environment.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-9984 Compile direct from a version control system

Add support for bare repositories into the git file reader.

Note that this change means that the {branch} part of the git file
name is no longer optional. To refer to HEAD (on a non-bare repository)
you can use {}

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-9984 Compile direct from a version control system

First stab at a vc hook for git repository support

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-9984 Compile direct from a version control system

Don't allow workunit to set the hook - would be some security concerns.

Define an environment variable for the current thread index, in case anyone
wants it for an svn plugin.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-9984 Compile direct from a version control system

Control whether local WU can override the branch

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-9984 Compile direct from a version control system

Typo in git.sh meant only worked in verbose mode.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-9984 Compile direct from a version control system

Add ability to support multiple repositories.

Translate branches to SHA's for atomicity.

Save sha in workunit application values.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-10059 Add options to git hook to control time between fetches, etc

GIT_FETCH_EXPIRES sets time in seconds after a fetch before it will issue
another one

GIT_IGNORE_FETCH_ERRORS can be set to treat failures to fetch as non-fatal

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-9984 Compile direct from a version control system

Minor fixes following code review

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4825 from richardkchapman/eclcc-repo

HPCC-9984 Compile direct from a version control system

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>