Révision f0bb83ab
Ajouté par Ermal il y a environ 10 ans
builder_scripts/build_snapshots.sh | ||
---|---|---|
88 | 88 |
|
89 | 89 |
git_last_commit() { |
90 | 90 |
if [ -d "${1}" ]; then |
91 |
(cd ${GIT_REPO_DIR}/pfSenseGITREPO && git fetch && git reset ${2})>/dev/null
|
|
91 |
(cd ${1} && git fetch && git reset ${2})>/dev/null
|
|
92 | 92 |
CURRENT_COMMIT=$(cd "${1}" && git log | head -n1 | cut -d' ' -f2) |
93 | 93 |
echo ">>> CURRENT_COMMIT: ${CURRENT_COMMIT} on ${1}" |
94 | 94 |
return $CURRENT_COMMIT |
Formats disponibles : Unified diff
Use the parameter actually