Project

General

Profile

Actions

Feature #802

open

Add support for GM_COMMIT

Added by Hammel over 1 year ago.

Status:
New
Priority:
Urgent
Assignee:
Start date:
04 Jan 2021
Due date:
% Done:

0%

Estimated time:
Severity:
01 - Critical

Description

If an env file sets GM_COMMIT to some non-empty value then the clone() function should checkout that commit id after cloning. It should look like this:

function clone
{   
    # echo "    clone  : $GM_CLONE" 
    ${GM_CLONE}
    if [[ "${GM_COMMIT}" != "" ]]; then
        pushd "${GM_SRC}" 
        echo "Checking out commit id: ${GM_COMMIT}" 
        git checkout "${GM_COMMIT}" 
        popd
    fi
} 

Might need to check the syntax of the pushd/popd stuff - I don't use that much.

No data to display

Actions

Also available in: Atom PDF