Skip to content

Commit

Permalink
fixed issue with incorrect/ambigous repo ref
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Jenikovsky <[email protected]>
  • Loading branch information
jendo42 committed Jul 2, 2024
1 parent 029c9e8 commit 3ac5a1e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions scripts/001-dvp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ fi
if test ! -d "$REPO_FOLDER"; then
git clone --depth 1 -b "$REPO_REF" "$REPO_URL" "$REPO_FOLDER"
else
git -C "$REPO_FOLDER" fetch origin
git -C "$REPO_FOLDER" reset --hard "origin/$REPO_REF"
git -C "$REPO_FOLDER" checkout "$REPO_REF"
git -C "$REPO_FOLDER" remote set-url origin "$REPO_URL"
git -C "$REPO_FOLDER" fetch origin "$REPO_REF" --depth=1
git -C "$REPO_FOLDER" checkout -f FETCH_HEAD
fi

cd "$REPO_FOLDER"
Expand Down
6 changes: 3 additions & 3 deletions scripts/002-iop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ fi
if test ! -d "$REPO_FOLDER"; then
git clone --depth 1 -b "$REPO_REF" "$REPO_URL" "$REPO_FOLDER"
else
git -C "$REPO_FOLDER" fetch origin
git -C "$REPO_FOLDER" reset --hard "origin/$REPO_REF"
git -C "$REPO_FOLDER" checkout "$REPO_REF"
git -C "$REPO_FOLDER" remote set-url origin "$REPO_URL"
git -C "$REPO_FOLDER" fetch origin "$REPO_REF" --depth=1
git -C "$REPO_FOLDER" checkout -f FETCH_HEAD
fi

cd "$REPO_FOLDER"
Expand Down
6 changes: 3 additions & 3 deletions scripts/003-ee.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ fi
if test ! -d "$REPO_FOLDER"; then
git clone --depth 1 -b "$REPO_REF" "$REPO_URL" "$REPO_FOLDER"
else
git -C "$REPO_FOLDER" fetch origin
git -C "$REPO_FOLDER" reset --hard "origin/$REPO_REF"
git -C "$REPO_FOLDER" checkout "$REPO_REF"
git -C "$REPO_FOLDER" remote set-url origin "$REPO_URL"
git -C "$REPO_FOLDER" fetch origin "$REPO_REF" --depth=1
git -C "$REPO_FOLDER" checkout -f FETCH_HEAD
fi

cd "$REPO_FOLDER"
Expand Down

0 comments on commit 3ac5a1e

Please sign in to comment.