-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better debugging, also fetch whole history for a merge
- Loading branch information
Showing
2 changed files
with
3 additions
and
1 deletion.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
images/oc-build-deploy-dind/scripts/git-checkout-pull-merge.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
REMOTE=$1 | ||
PR_HEAD_SHA=$2 | ||
PR_BASE_SHA=$3 | ||
|
||
git init . | ||
git config remote.origin.url $REMOTE | ||
git fetch --depth=10 --tags --progress $REMOTE +refs/heads/*:refs/remotes/origin/* | ||
git fetch --tags --progress $REMOTE +refs/heads/*:refs/remotes/origin/* | ||
|
||
git checkout --force "${3}" | ||
git merge ${2} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
# REF: can be a: | ||
# a sha: a7789dc5e6960bb2250ae39d7e7145b632c44c77 | ||
|