Skip to content

Commit

Permalink
agregado upstream otra vez (borrado por accidente)
Browse files Browse the repository at this point in the history
  • Loading branch information
deybis committed Sep 25, 2024
1 parent 4b2df53 commit d607fa5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .devcontainer/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ if echo "$GIT_OUTPUT" | grep -q "is owned by"; then
echo "Agregando directorio inseguro como seguro: $UNSAFE_DIR"
$GIT config --global --add safe.directory "$UNSAFE_DIR"
fi

# Verificar si upstream ya existe, si no, agregarlo
if ! $GIT remote | grep -q upstream; then
echo "Agregando remoto 'upstream': $REPO"
$GIT remote add upstream $REPO
fi
# Obtener y fusionar cambios del repositorio upstream
$GIT fetch upstream
COMMIT=$(date +"%Y-%m-%d %H:%M:%S")
$GIT merge upstream/main -m "$COMMIT"
$GIT merge upstream/main -m "$COMMIT" --allow-unrelated-histories
$GIT push

0 comments on commit d607fa5

Please sign in to comment.