Projet

Général

Profil

« Précédent | Suivant » 

Révision b32c8478

Ajouté par Ermal il y a presque 10 ans

To not enter in detached state rebase the origin instead of resetting state

Voir les différences:

builder_scripts/build_snapshots.sh
88 88

  
89 89
git_last_commit() {
90 90
	if [ -d "${1}" ]; then
91
		(cd ${1} && git fetch && git reset ${2})>/dev/null
91
		(cd ${1} && git fetch && git rebase ${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