Skip to content

Commit

Permalink
Merge pull request #107 from jendo42/devel
Browse files Browse the repository at this point in the history
fixed issue with incorrect/ambigous repo ref
  • Loading branch information
uyjulian authored Jul 4, 2024
2 parents 029c9e8 + 3ac5a1e commit 611641b
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 611641b

Please sign in to comment.